mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
7db06eac7a
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> llvm-svn: 311446
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
|
|
}
|