summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/asm-constraints.ll
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-09-12 14:26:36 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-09-12 14:26:36 +0000
commitb73b370809325a10ebffeba8a6e61a38e5c3c68a (patch)
tree647888a598b64ebeb44d509def3eb129cf65c864 /llvm/test/CodeGen/PowerPC/asm-constraints.ll
parent651725e1915c67db680aeefb696c983226a8e531 (diff)
downloadbcm5719-llvm-b73b370809325a10ebffeba8a6e61a38e5c3c68a.tar.gz
bcm5719-llvm-b73b370809325a10ebffeba8a6e61a38e5c3c68a.zip
Address comments on r217622
llvm-svn: 217680
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/asm-constraints.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/asm-constraints.ll12
1 files changed, 12 insertions, 0 deletions
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"
OpenPOWER on IntegriCloud