aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/large-code-model-isel.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/large-code-model-isel.ll')
-rw-r--r--test/CodeGen/X86/large-code-model-isel.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/large-code-model-isel.ll b/test/CodeGen/X86/large-code-model-isel.ll
new file mode 100644
index 0000000..3c283d9
--- /dev/null
+++ b/test/CodeGen/X86/large-code-model-isel.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -code-model=large -mcpu=core2 -march=x86-64 -O0 | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
+@.str10 = external unnamed_addr constant [2 x i8], align 1
+
+define void @foo() {
+; CHECK-LABEL: foo:
+entry:
+; CHECK: callq
+ %call = call i64* undef(i64* undef, i8* getelementptr inbounds ([2 x i8]* @.str10, i32 0, i32 0))
+ ret void
+}