mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-15 18:06:08 +00:00

The ARM backend should call setBooleanContents so that it can use known bits to make some optimizations. Review: D35821 Patch by Joel Galenson <jgalenson@google.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311446 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
223 B
LLVM
16 lines
223 B
LLVM
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
|
|
|
|
define i32 @test1() {
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: mov r0, #0
|
|
; CHECK-NEXT: cmp r0, #0
|
|
entry:
|
|
br i1 undef, label %t, label %f
|
|
|
|
t:
|
|
ret i32 4
|
|
|
|
f:
|
|
ret i32 2
|
|
}
|