From b73b370809325a10ebffeba8a6e61a38e5c3c68a Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Fri, 12 Sep 2014 14:26:36 +0000 Subject: Address comments on r217622 llvm-svn: 217680 --- llvm/test/CodeGen/PowerPC/asm-constraints.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'llvm/test/CodeGen/PowerPC/asm-constraints.ll') diff --git a/llvm/test/CodeGen/PowerPC/asm-constraints.ll b/llvm/test/CodeGen/PowerPC/asm-constraints.ll index b8eb5efc869..998b61834f4 100644 --- a/llvm/test/CodeGen/PowerPC/asm-constraints.ll +++ b/llvm/test/CodeGen/PowerPC/asm-constraints.ll @@ -1,5 +1,17 @@ ; RUN: llc < %s -mcpu=pwr8 | FileCheck %s +; Generated from following C code: +; +; void foo (int result, char *addr) { +; __asm__ __volatile__ ( +; "ld%U1%X1 %0,%1\n" +; "cmpw %0,%0\n" +; "bne- 1f\n" +; "1: isync\n" +; : "=r" (result) +; : "m"(*addr) : "memory", "cr0"); +; } + target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le-unknown-linux-gnu" -- cgit v1.2.3