Sign in
cobalt
/
cobalt
/
ac9ac065c5083565917b15e7a672a79599f2f00b
/
.
/
src
/
third_party
/
llvm-project
/
llvm
/
test
/
CodeGen
/
AArch64
/
zext-logic-shift-load.ll
blob: a75862cfc3b34275535e5e9d6c9f0d93d5de4d15 [
file
] [
log
] [
blame
]
; RUN: llc -mtriple=aarch64-linux-gnu < %s -o - | FileCheck %s
define
i32
@test1
(
i8
*
%p
)
{
; CHECK: ldrb
; CHECK-NEXT: ubfx
; CHECK-NEXT: ret
%1
=
load
i8
,
i8
*
%p
%2
=
lshr
i8
%1
,
1
%3
=
and
i8
%2
,
1
%4
=
zext
i8
%3
to
i32
ret
i32
%4
}