Debian Codegraph @

llvm/test/CodeGen/PowerPC/ispositive.ll

raw
1 ; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
2
3 ; CHECK-LABEL: test1
4 ; CHECK: srwi r3, r3, 31
5 ; CHECK: blr
6 define i32 @test1(i32 %X) {
7 entry:
8 icmp slt i32 %X, 0 ; <i1>:0 [#uses=1]
9 zext i1 %0 to i32 ; <i32>:1 [#uses=1]
10 ret i32 %1
11 }
12