diff options
Diffstat (limited to 'test/CodeGen/X86/x32-lea-1.ll')
-rw-r--r-- | test/CodeGen/X86/x32-lea-1.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/x32-lea-1.ll b/test/CodeGen/X86/x32-lea-1.ll new file mode 100644 index 0000000..7ccb34d --- /dev/null +++ b/test/CodeGen/X86/x32-lea-1.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -O0 | FileCheck %s +; CHECK: leal {{[-0-9]*}}(%r{{s|b}}p), +; CHECK-NOT: leal {{[-0-9]*}}(%e{{s|b}}p), + +define void @foo(i32** %p) { + %a = alloca i32, i32 10 + %addr = getelementptr i32* %a, i32 4 + store i32* %addr, i32** %p + ret void +} |