llvm-for-llvmta/test/CodeGen/XCore/zext.ll

11 lines
162 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -march=xcore < %s | FileCheck %s
define i32 @f(i1 %a) {
entry:
; CHECK: f
; CHECK: zext r0, 1
; CHECK: retsp 0
%b= zext i1 %a to i32
ret i32 %b
}