blob: 9ee4014ae346ad9df5da925109860ec4efc8428c [file] [log] [blame]
Krzysztof Parzyszek60f0b512016-08-11 18:15:16 +00001; RUN: llc -march=hexagon < %s | FileCheck %s
2;
3; Either and or zxtb.
Krzysztof Parzyszeka72fad92017-02-10 15:33:13 +00004; CHECK: r0 = and(r1,#255)
Krzysztof Parzyszek60f0b512016-08-11 18:15:16 +00005
6%struct.t0 = type { i32 }
7
8define i32 @foo(%struct.t0* byval align 8 %s, i8 zeroext %t, i8 %u) #0 {
9 %a = zext i8 %u to i32
10 ret i32 %a
11}