1 ; REQUIRES: x86-registered-target
2 ; RUN: llc %s -o - | FileCheck %s --check-prefix=CHECK-SMALL
4 ;; Check the llc option will override the IR input.
5 ; RUN: llc -code-model=large %s -o - | FileCheck %s --check-prefix=CHECK-LARGE
7 target triple = "x86_64-unknown-linux-gnu"
8 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10 !llvm.module.flags = !{!0, !1}
12 !0 = !{i32 1, !"wchar_size", i32 4}
13 !1 = !{i32 1, !"Code Model", i32 1}
15 @data = internal constant [0 x i32] []
17 define ptr @foo() nounwind readonly {
19 ; CHECK-LARGE: movabsq $data, %rax
20 ; CHECK-SMALL: movl $data, %eax