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
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
ARM
/
zext-logic-shift-load.ll
blob
73d57cfc82d2f12e5b64b921eea29dafc8244cdf
1
; RUN: llc -mtriple=armv7-linux-gnu < %s -o - | FileCheck %s
2
3
define void @test1(ptr %p, ptr %q) {
4
; CHECK: ldrb
5
; CHECK-NEXT: mov
6
; CHECK-NEXT: and
7
; CHECK-NEXT: strh
8
; CHECK-NEXT: bx
9
10
%1 = load i8, ptr %p
11
%2 = shl i8 %1, 2
12
%3 = and i8 %2, 12
13
%4 = zext i8 %3 to i16
14
store i16 %4, ptr %q
15
ret void
16
}
17