mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
314 B
LLVM
17 lines
314 B
LLVM
; RUN: llc < %s -march=arm | not grep CPI
|
|
|
|
define i32 @test1(i32 %A) {
|
|
%B = add i32 %A, -268435441 ; <i32> [#uses=1]
|
|
ret i32 %B
|
|
}
|
|
|
|
define i32 @test2() {
|
|
ret i32 65533
|
|
}
|
|
|
|
define i32 @test3(i32 %A) {
|
|
%B = or i32 %A, 65533 ; <i32> [#uses=1]
|
|
ret i32 %B
|
|
}
|
|
|