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