diff options
author | Stephen Hines <srhines@google.com> | 2014-12-01 14:51:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-02 16:08:10 -0800 |
commit | 37ed9c199ca639565f6ce88105f9e39e898d82d0 (patch) | |
tree | 8fb36d3910e3ee4c4e1b7422f4f017108efc52f5 /test/CodeGen/R600/kernel-args.ll | |
parent | d2327b22152ced7bc46dc629fc908959e8a52d03 (diff) | |
download | external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.zip external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.gz external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.bz2 |
Update aosp/master LLVM for rebase to r222494.
Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
Diffstat (limited to 'test/CodeGen/R600/kernel-args.ll')
-rw-r--r-- | test/CodeGen/R600/kernel-args.ll | 284 |
1 files changed, 151 insertions, 133 deletions
diff --git a/test/CodeGen/R600/kernel-args.ll b/test/CodeGen/R600/kernel-args.ll index 6fc6979..9a7da90 100644 --- a/test/CodeGen/R600/kernel-args.ll +++ b/test/CodeGen/R600/kernel-args.ll @@ -2,10 +2,10 @@ ; RUN: llc < %s -march=r600 -mcpu=cayman | FileCheck %s --check-prefix=EG-CHECK ; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s --check-prefix=SI-CHECK -; EG-CHECK-LABEL: @i8_arg +; EG-CHECK-LABEL: {{^}}i8_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i8_arg -; SI-CHECK: BUFFER_LOAD_UBYTE +; SI-CHECK-LABEL: {{^}}i8_arg: +; SI-CHECK: buffer_load_ubyte define void @i8_arg(i32 addrspace(1)* nocapture %out, i8 %in) nounwind { entry: @@ -14,10 +14,10 @@ entry: ret void } -; EG-CHECK-LABEL: @i8_zext_arg +; EG-CHECK-LABEL: {{^}}i8_zext_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i8_zext_arg -; SI-CHECK: S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}i8_zext_arg: +; SI-CHECK: s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @i8_zext_arg(i32 addrspace(1)* nocapture %out, i8 zeroext %in) nounwind { entry: @@ -26,10 +26,10 @@ entry: ret void } -; EG-CHECK-LABEL: @i8_sext_arg +; EG-CHECK-LABEL: {{^}}i8_sext_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i8_sext_arg -; SI-CHECK: S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}i8_sext_arg: +; SI-CHECK: s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @i8_sext_arg(i32 addrspace(1)* nocapture %out, i8 signext %in) nounwind { entry: @@ -38,10 +38,10 @@ entry: ret void } -; EG-CHECK-LABEL: @i16_arg +; EG-CHECK-LABEL: {{^}}i16_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i16_arg -; SI-CHECK: BUFFER_LOAD_USHORT +; SI-CHECK-LABEL: {{^}}i16_arg: +; SI-CHECK: buffer_load_ushort define void @i16_arg(i32 addrspace(1)* nocapture %out, i16 %in) nounwind { entry: @@ -50,10 +50,10 @@ entry: ret void } -; EG-CHECK-LABEL: @i16_zext_arg +; EG-CHECK-LABEL: {{^}}i16_zext_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i16_zext_arg -; SI-CHECK: S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}i16_zext_arg: +; SI-CHECK: s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @i16_zext_arg(i32 addrspace(1)* nocapture %out, i16 zeroext %in) nounwind { entry: @@ -62,10 +62,10 @@ entry: ret void } -; EG-CHECK-LABEL: @i16_sext_arg +; EG-CHECK-LABEL: {{^}}i16_sext_arg: ; EG-CHECK: MOV {{[ *]*}}T{{[0-9]+\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i16_sext_arg -; SI-CHECK: S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}i16_sext_arg: +; SI-CHECK: s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @i16_sext_arg(i32 addrspace(1)* nocapture %out, i16 signext %in) nounwind { entry: @@ -74,176 +74,176 @@ entry: ret void } -; EG-CHECK-LABEL: @i32_arg +; EG-CHECK-LABEL: {{^}}i32_arg: ; EG-CHECK: T{{[0-9]\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @i32_arg -; S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}i32_arg: +; s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @i32_arg(i32 addrspace(1)* nocapture %out, i32 %in) nounwind { entry: store i32 %in, i32 addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @f32_arg +; EG-CHECK-LABEL: {{^}}f32_arg: ; EG-CHECK: T{{[0-9]\.[XYZW]}}, KC0[2].Z -; SI-CHECK-LABEL: @f32_arg -; S_LOAD_DWORD s{{[0-9]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}f32_arg: +; s_load_dword s{{[0-9]}}, s[0:1], 0xb define void @f32_arg(float addrspace(1)* nocapture %out, float %in) nounwind { entry: store float %in, float addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v2i8_arg +; EG-CHECK-LABEL: {{^}}v2i8_arg: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 -; SI-CHECK-LABEL: @v2i8_arg -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE +; SI-CHECK-LABEL: {{^}}v2i8_arg: +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte define void @v2i8_arg(<2 x i8> addrspace(1)* %out, <2 x i8> %in) { entry: store <2 x i8> %in, <2 x i8> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v2i16_arg +; EG-CHECK-LABEL: {{^}}v2i16_arg: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 -; SI-CHECK-LABEL: @v2i16_arg -; SI-CHECK-DAG: BUFFER_LOAD_USHORT -; SI-CHECK-DAG: BUFFER_LOAD_USHORT +; SI-CHECK-LABEL: {{^}}v2i16_arg: +; SI-CHECK-DAG: buffer_load_ushort +; SI-CHECK-DAG: buffer_load_ushort define void @v2i16_arg(<2 x i16> addrspace(1)* %out, <2 x i16> %in) { entry: store <2 x i16> %in, <2 x i16> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v2i32_arg +; EG-CHECK-LABEL: {{^}}v2i32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].X ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[2].W -; SI-CHECK-LABEL: @v2i32_arg -; SI-CHECK: S_LOAD_DWORDX2 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}v2i32_arg: +; SI-CHECK: s_load_dwordx2 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xb define void @v2i32_arg(<2 x i32> addrspace(1)* nocapture %out, <2 x i32> %in) nounwind { entry: store <2 x i32> %in, <2 x i32> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v2f32_arg +; EG-CHECK-LABEL: {{^}}v2f32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].X ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[2].W -; SI-CHECK-LABEL: @v2f32_arg -; SI-CHECK: S_LOAD_DWORDX2 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xb +; SI-CHECK-LABEL: {{^}}v2f32_arg: +; SI-CHECK: s_load_dwordx2 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xb define void @v2f32_arg(<2 x float> addrspace(1)* nocapture %out, <2 x float> %in) nounwind { entry: store <2 x float> %in, <2 x float> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v3i8_arg +; EG-CHECK-LABEL: {{^}}v3i8_arg: ; VTX_READ_8 T{{[0-9]}}.X, T{{[0-9]}}.X, 40 ; VTX_READ_8 T{{[0-9]}}.X, T{{[0-9]}}.X, 41 ; VTX_READ_8 T{{[0-9]}}.X, T{{[0-9]}}.X, 42 -; SI-CHECK-LABEL: @v3i8_arg +; SI-CHECK-LABEL: {{^}}v3i8_arg: define void @v3i8_arg(<3 x i8> addrspace(1)* nocapture %out, <3 x i8> %in) nounwind { entry: store <3 x i8> %in, <3 x i8> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v3i16_arg +; EG-CHECK-LABEL: {{^}}v3i16_arg: ; VTX_READ_16 T{{[0-9]}}.X, T{{[0-9]}}.X, 44 ; VTX_READ_16 T{{[0-9]}}.X, T{{[0-9]}}.X, 46 ; VTX_READ_16 T{{[0-9]}}.X, T{{[0-9]}}.X, 48 -; SI-CHECK-LABEL: @v3i16_arg +; SI-CHECK-LABEL: {{^}}v3i16_arg: define void @v3i16_arg(<3 x i16> addrspace(1)* nocapture %out, <3 x i16> %in) nounwind { entry: store <3 x i16> %in, <3 x i16> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v3i32_arg +; EG-CHECK-LABEL: {{^}}v3i32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].W -; SI-CHECK-LABEL: @v3i32_arg -; SI-CHECK: S_LOAD_DWORDX4 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0xd +; SI-CHECK-LABEL: {{^}}v3i32_arg: +; SI-CHECK: s_load_dwordx4 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0xd define void @v3i32_arg(<3 x i32> addrspace(1)* nocapture %out, <3 x i32> %in) nounwind { entry: store <3 x i32> %in, <3 x i32> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v3f32_arg +; EG-CHECK-LABEL: {{^}}v3f32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].W -; SI-CHECK-LABEL: @v3f32_arg -; SI-CHECK: S_LOAD_DWORDX4 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0xd +; SI-CHECK-LABEL: {{^}}v3f32_arg: +; SI-CHECK: s_load_dwordx4 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0xd define void @v3f32_arg(<3 x float> addrspace(1)* nocapture %out, <3 x float> %in) nounwind { entry: store <3 x float> %in, <3 x float> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v4i8_arg +; EG-CHECK-LABEL: {{^}}v4i8_arg: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 -; SI-CHECK-LABEL: @v4i8_arg -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE +; SI-CHECK-LABEL: {{^}}v4i8_arg: +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte define void @v4i8_arg(<4 x i8> addrspace(1)* %out, <4 x i8> %in) { entry: store <4 x i8> %in, <4 x i8> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v4i16_arg +; EG-CHECK-LABEL: {{^}}v4i16_arg: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 -; SI-CHECK-LABEL: @v4i16_arg -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT +; SI-CHECK-LABEL: {{^}}v4i16_arg: +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort define void @v4i16_arg(<4 x i16> addrspace(1)* %out, <4 x i16> %in) { entry: store <4 x i16> %in, <4 x i16> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v4i32_arg +; EG-CHECK-LABEL: {{^}}v4i32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].X -; SI-CHECK-LABEL: @v4i32_arg -; SI-CHECK: S_LOAD_DWORDX4 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xd +; SI-CHECK-LABEL: {{^}}v4i32_arg: +; SI-CHECK: s_load_dwordx4 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xd define void @v4i32_arg(<4 x i32> addrspace(1)* nocapture %out, <4 x i32> %in) nounwind { entry: store <4 x i32> %in, <4 x i32> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v4f32_arg +; EG-CHECK-LABEL: {{^}}v4f32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[3].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].X -; SI-CHECK-LABEL: @v4f32_arg -; SI-CHECK: S_LOAD_DWORDX4 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xd +; SI-CHECK-LABEL: {{^}}v4f32_arg: +; SI-CHECK: s_load_dwordx4 s{{\[[0-9]:[0-9]\]}}, s[0:1], 0xd define void @v4f32_arg(<4 x float> addrspace(1)* nocapture %out, <4 x float> %in) nounwind { entry: store <4 x float> %in, <4 x float> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v8i8_arg +; EG-CHECK-LABEL: {{^}}v8i8_arg: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 @@ -252,21 +252,21 @@ entry: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 -; SI-CHECK-LABEL: @v8i8_arg -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE +; SI-CHECK-LABEL: {{^}}v8i8_arg: +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte define void @v8i8_arg(<8 x i8> addrspace(1)* %out, <8 x i8> %in) { entry: store <8 x i8> %in, <8 x i8> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v8i16_arg +; EG-CHECK-LABEL: {{^}}v8i16_arg: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 @@ -275,22 +275,22 @@ entry: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 -; SI-CHECK-LABEL: @v8i16_arg -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT +; SI-CHECK-LABEL: {{^}}v8i16_arg: +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort define void @v8i16_arg(<8 x i16> addrspace(1)* %out, <8 x i16> %in) { entry: store <8 x i16> %in, <8 x i16> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v8i32_arg +; EG-CHECK-LABEL: {{^}}v8i32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].W @@ -299,15 +299,15 @@ entry: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[5].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[5].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].X -; SI-CHECK-LABEL: @v8i32_arg -; SI-CHECK: S_LOAD_DWORDX8 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x11 +; SI-CHECK-LABEL: {{^}}v8i32_arg: +; SI-CHECK: s_load_dwordx8 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x11 define void @v8i32_arg(<8 x i32> addrspace(1)* nocapture %out, <8 x i32> %in) nounwind { entry: store <8 x i32> %in, <8 x i32> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v8f32_arg +; EG-CHECK-LABEL: {{^}}v8f32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[4].W @@ -316,15 +316,15 @@ entry: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[5].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[5].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].X -; SI-CHECK-LABEL: @v8f32_arg -; SI-CHECK: S_LOAD_DWORDX8 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x11 +; SI-CHECK-LABEL: {{^}}v8f32_arg: +; SI-CHECK: s_load_dwordx8 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x11 define void @v8f32_arg(<8 x float> addrspace(1)* nocapture %out, <8 x float> %in) nounwind { entry: store <8 x float> %in, <8 x float> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v16i8_arg +; EG-CHECK-LABEL: {{^}}v16i8_arg: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 @@ -341,30 +341,30 @@ entry: ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 ; EG-CHECK: VTX_READ_8 -; SI-CHECK-LABEL: @v16i8_arg -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE -; SI-CHECK: BUFFER_LOAD_UBYTE +; SI-CHECK-LABEL: {{^}}v16i8_arg: +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte +; SI-CHECK: buffer_load_ubyte define void @v16i8_arg(<16 x i8> addrspace(1)* %out, <16 x i8> %in) { entry: store <16 x i8> %in, <16 x i8> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v16i16_arg +; EG-CHECK-LABEL: {{^}}v16i16_arg: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 @@ -381,30 +381,30 @@ entry: ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 ; EG-CHECK: VTX_READ_16 -; SI-CHECK-LABEL: @v16i16_arg -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT -; SI-CHECK: BUFFER_LOAD_USHORT +; SI-CHECK-LABEL: {{^}}v16i16_arg: +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort +; SI-CHECK: buffer_load_ushort define void @v16i16_arg(<16 x i16> addrspace(1)* %out, <16 x i16> %in) { entry: store <16 x i16> %in, <16 x i16> addrspace(1)* %out ret void } -; EG-CHECK-LABEL: @v16i32_arg +; EG-CHECK-LABEL: {{^}}v16i32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].W @@ -421,15 +421,15 @@ entry: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[9].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[9].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[10].X -; SI-CHECK-LABEL: @v16i32_arg -; SI-CHECK: S_LOAD_DWORDX16 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x19 +; SI-CHECK-LABEL: {{^}}v16i32_arg: +; SI-CHECK: s_load_dwordx16 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x19 define void @v16i32_arg(<16 x i32> addrspace(1)* nocapture %out, <16 x i32> %in) nounwind { entry: store <16 x i32> %in, <16 x i32> addrspace(1)* %out, align 4 ret void } -; EG-CHECK-LABEL: @v16f32_arg +; EG-CHECK-LABEL: {{^}}v16f32_arg: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].Y ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[6].W @@ -446,10 +446,28 @@ entry: ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[9].Z ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[9].W ; EG-CHECK-DAG: T{{[0-9]\.[XYZW]}}, KC0[10].X -; SI-CHECK-LABEL: @v16f32_arg -; SI-CHECK: S_LOAD_DWORDX16 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x19 +; SI-CHECK-LABEL: {{^}}v16f32_arg: +; SI-CHECK: s_load_dwordx16 s{{\[[0-9]:[0-9]+\]}}, s[0:1], 0x19 define void @v16f32_arg(<16 x float> addrspace(1)* nocapture %out, <16 x float> %in) nounwind { entry: store <16 x float> %in, <16 x float> addrspace(1)* %out, align 4 ret void } + +; FUNC-LABEL: {{^}}kernel_arg_i64: +; SI: s_load_dwordx2 +; SI: s_load_dwordx2 +; SI: buffer_store_dwordx2 +define void @kernel_arg_i64(i64 addrspace(1)* %out, i64 %a) nounwind { + store i64 %a, i64 addrspace(1)* %out, align 8 + ret void +} + +; XFUNC-LABEL: {{^}}kernel_arg_v1i64: +; XSI: s_load_dwordx2 +; XSI: s_load_dwordx2 +; XSI: buffer_store_dwordx2 +; define void @kernel_arg_v1i64(<1 x i64> addrspace(1)* %out, <1 x i64> %a) nounwind { +; store <1 x i64> %a, <1 x i64> addrspace(1)* %out, align 8 +; ret void +; } |