mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
11 lines
162 B
LLVM
11 lines
162 B
LLVM
|
; 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
|
||
|
}
|