]> granicus.if.org Git - clang/commitdiff
Add another test for r354937 that came up in PR40890
authorHans Wennborg <hans@hanshq.net>
Fri, 8 Mar 2019 09:01:10 +0000 (09:01 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 8 Mar 2019 09:01:10 +0000 (09:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355670 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/x86-64-inline-asm.c

index 79c1bd95f38b5477de7a3c442f35b124756005bc..80ae0a46a25c6ffdf5e262046df8ae4316a71e29 100644 (file)
@@ -24,9 +24,11 @@ void pr40890(void) {
   __asm__ __volatile__("\n#define S_A abcd%0\n" : : "n"(&((struct s*)0)->a));
   __asm__ __volatile__("\n#define S_B abcd%0\n" : : "n"(&((struct s*)0)->b));
   __asm__ __volatile__("\n#define BEEF abcd%0\n" : : "n"((int*)0xdeadbeeeeeef));
+  __asm__ __volatile__("movabsq %0, %%rax" : : "n"(4624529908474429119));
 
 // CHECK-LABEL: pr40890
 // CHECK: #define S_A abcd$0
 // CHECK: #define S_B abcd$4
 // CHECK: #define BEEF abcd$244837814038255
+// CHECK: movabsq $4624529908474429119, %rax
 }