Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/ARM/subtarget-no-movt.ll @ 100:7d135dc70f03
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | afa8332a0e37 |
children | 1172e4bd9c6f |
line wrap: on
line source
; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - | FileCheck -check-prefix=NO-OPTION %s ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 | FileCheck -check-prefix=NO-OPTION %s ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=-no-movt | FileCheck -check-prefix=USE-MOVT %s ; RUN: llc -march thumb -mcpu=cortex-a8 -relocation-model=static %s -o - -O0 -mattr=+no-movt | FileCheck -check-prefix=NO-USE-MOVT %s ; NO-OPTION-LABEL: {{_?}}foo0 ; NO-OPTION: ldr [[R0:r[0-9]+]], [[L0:.*]] ; NO-OPTION: [[L0]]: ; NO-OPTION: .long 2296237089 ; USE-MOVT-LABEL: {{_?}}foo0 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257 ; USE-MOVT: movt [[R0]], #35037 ; NO-USE-MOVT-LABEL: {{_?}}foo0 ; NO-USE-MOVT: ldr [[R0:r[0-9]+]], [[L0:.*]] ; NO-USE-MOVT: [[L0]]: ; NO-USE-MOVT: .long 2296237089 define i32 @foo0(i32 %a) #0 { %1 = xor i32 -1998730207, %a ret i32 %1 } ; NO-OPTION-LABEL: {{_?}}foo1 ; NO-OPTION: movw [[R0:r[0-9]+]], #52257 ; NO-OPTION: movt [[R0]], #35037 ; USE-MOVT-LABEL: {{_?}}foo1 ; USE-MOVT: movw [[R0:r[0-9]+]], #52257 ; USE-MOVT: movt [[R0]], #35037 ; NO-USE-MOVT-LABEL: {{_?}}foo1 ; NO-USE-MOVT: ldr [[R0:r[0-9]+]], [[L0:.*]] ; NO-USE-MOVT: [[L0]]: ; NO-USE-MOVT: .long 2296237089 define i32 @foo1(i32 %a) { %1 = xor i32 -1998730207, %a ret i32 %1 } attributes #0 = { "target-features"="+no-movt" }