1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC/Hexagon/inst_cmp_gti.ll
Krzysztof Parzyszek 9949cdf248 [Hexagon] Improve lowering of returns of i1
Emit explicit any-extend to avoid weird tstbit sequences.
2021-04-22 16:47:52 -05:00

12 lines
255 B
LLVM

;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \
;; RUN: | llvm-objdump -d - | FileCheck %s
define i1 @f0(i32 %a0) {
%v0 = icmp sgt i32 %a0, 42
ret i1 %v0
}
; CHECK: p0 = cmp.gt(r0,#42)
; CHECK: r0 = mux(p0,#1,#0)
; CHECK: jumpr r31