From: Hans Wennborg Date: Fri, 8 Mar 2019 09:01:10 +0000 (+0000) Subject: Add another test for r354937 that came up in PR40890 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8352604262c26081960a1ed157aeb6cfeabdf5e9;p=clang Add another test for r354937 that came up in PR40890 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355670 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/x86-64-inline-asm.c b/test/CodeGen/x86-64-inline-asm.c index 79c1bd95f3..80ae0a46a2 100644 --- a/test/CodeGen/x86-64-inline-asm.c +++ b/test/CodeGen/x86-64-inline-asm.c @@ -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 }