aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/zext.ll
blob: 32abfcaed10b610b91488a8c037a16398a0e2369 (plain)
1
2
3
4
5
6
7
8
9
10
; 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
}