repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
AVR
/
zext.ll
blob
c95ad03053c76ef157e2f21f44f29263dc590f4d
1
; RUN: llc < %s -march=avr | FileCheck %s
2
3
; zext R25:R24, R24
4
; eor R25, R25
5
define i16 @zext1(i8 %x) {
6
; CHECK-LABEL: zext1:
7
; CHECK: clr r25
8
%1 = zext i8 %x to i16
9
ret i16 %1
10
}
11
12
; zext R25:R24, R20
13
; mov R24, R20
14
; clr R25
15
define i16 @zext2(i8 %x, i8 %y) {
16
; CHECK-LABEL: zext2:
17
; CHECK: mov r24, r22
18
; CHECK: clr r25
19
%1 = zext i8 %y to i16
20
ret i16 %1
21
}
22
23
; zext R25:R24, R24
24
; clr R25
25
define i16 @zext_i1(i1 %x) {
26
; CHECK-LABEL: zext_i1:
27
; CHECK: andi r25, 0
28
%1 = zext i1 %x to i16
29
ret i16 %1
30
}
31