mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
4bf7d5872e
Upgrade of the IR text tests should be the only thing blocking making typed byval mandatory. Partially done through regex and partially manual.
12 lines
250 B
LLVM
12 lines
250 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
;
|
|
; Either and or zxtb.
|
|
; CHECK: r0 = and(r1,#255)
|
|
|
|
%struct.t0 = type { i32 }
|
|
|
|
define i32 @foo(%struct.t0* byval(%struct.t0) align 8 %s, i8 zeroext %t, i8 %u) #0 {
|
|
%a = zext i8 %u to i32
|
|
ret i32 %a
|
|
}
|