summaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-03-22 23:34:01 +0000
committerBill Wendling <isanbard@gmail.com>2012-03-22 23:34:01 +0000
commit263e0a6106f58a43ae67b28e92d8af6716e61c69 (patch)
treec9f38eab17bbaf17b0a38198a4af45714604a606 /test/CodeGen
parent8ff6059b3d2acbdfcf4612d5a08259727dad3c87 (diff)
Small cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/asm-inout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGen/asm-inout.c b/test/CodeGen/asm-inout.c
index 888304355b..c7d1aeceb9 100644
--- a/test/CodeGen/asm-inout.c
+++ b/test/CodeGen/asm-inout.c
@@ -19,23 +19,23 @@ void test2() {
}
// PR7338
+// CHECK: @test3
void test3(int *vout, int vin)
{
// CHECK: call void asm "opr $0,$1", "=*r|m|r,r|m|r,~{edi},~{dirflag},~{fpsr},~{flags}"
-asm(
- "opr %[vout],%[vin]"
- : [vout] "=r,=m,=r" (*vout)
- : [vin] "r,m,r" (vin)
- : "edi"
- );
+ asm ("opr %[vout],%[vin]"
+ : [vout] "=r,=m,=r" (*vout)
+ : [vin] "r,m,r" (vin)
+ : "edi");
}
// PR8959 - This should implicitly truncate the immediate to a byte.
+// CHECK: @test4
int test4(volatile int *addr) {
unsigned char oldval;
+ // CHECK: call i8 asm "frob $0", "=r,0{{.*}}"(i8 -1)
__asm__ ("frob %0" : "=r"(oldval) : "0"(0xff));
return (int)oldval;
-// CHECK: call i8 asm "frob $0", "=r,0{{.*}}"(i8 -1)
}
// <rdar://problem/10919182> - This should have both inputs be of type x86_mmx.
@@ -43,6 +43,6 @@ int test4(volatile int *addr) {
typedef long long __m64 __attribute__((__vector_size__(8)));
__m64 test5(__m64 __A, __m64 __B) {
// CHECK: call x86_mmx asm "pmulhuw $1, $0\0A\09", "=y,y,0,~{dirflag},~{fpsr},~{flags}"(x86_mmx %{{.*}}, x86_mmx %{{.*}})
- asm("pmulhuw %1, %0\n\t" : "+y" (__A) : "y" (__B));
+ asm ("pmulhuw %1, %0\n\t" : "+y" (__A) : "y" (__B));
return __A;
}