Skip to content

Commit

Permalink
Update shader tests after LLVM update (#2760)
Browse files Browse the repository at this point in the history
Update tests affected by upstream change:
[AMDGPU] Use absolute relocations when compiling for AMDPAL and Mesa3D
llvm/llvm-project#67791
Tests would fail until they are propagated so they are also disabled
in this patch. TODO: re-enable tests once everything has propagated.
  • Loading branch information
petar-avramovic authored Oct 13, 2023
1 parent ca3a2e4 commit 5db5dab
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 68 deletions.
28 changes: 16 additions & 12 deletions llpc/test/shaderdb/general/PipelineVsFs_FsWithData.pipe
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
; Test that constant data in the fragment shader is handled correctly.
; BEGIN_SHADERTEST
; RUN: amdllpc -enable-relocatable-shader-elf -o %t.elf %gfxip %s && llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST %s
; REQUIRES: do-not-run-me
; SHADERTEST-LABEL: <_amdgpu_ps_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[fs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 3}}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_add_co_u32_e32 {{v[0-9]*}}, vcc, {{s[0-9]*}}, {{v[0-9]*}}
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, 0
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[fs_data_sym]]
; SHADERTEST: 0000000000000000 <[[fs_data_sym]]>:
; SHADERTEST-NEXT: 000000000000: 3F800000
; SHADERTEST-NEXT: 000000000004: 00000000
Expand All @@ -24,10 +26,11 @@
; BEGIN_SHADERTEST
; RUN: amdllpc -enable-part-pipeline=0 -o %t.elf %gfxip %s && llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST2_PP0 %s
; SHADERTEST2_PP0-LABEL: <_amdgpu_ps_main>:
; SHADERTEST2_PP0: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP0-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP0: s_mov_b32 {{s[0-9]*}}, {{0 2}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_LO .rodata
; SHADERTEST2_PP0-NEXT: v_add_co_u32_e32 {{v[0-9]*}}, vcc, {{s[0-9]*}}, {{v[0-9]*}}
; SHADERTEST2_PP0-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_HI .rodata
; SHADERTEST2_PP0-LABEL: <__llpc_global_proxy_{{.*}}>:
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 00000000
Expand All @@ -47,10 +50,11 @@
; BEGIN_SHADERTEST
; RUN: amdllpc -enable-part-pipeline=1 -o %t.elf %gfxip %s && llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST2_PP1 %s
; SHADERTEST2_PP1-LABEL: <_amdgpu_ps_main>:
; SHADERTEST2_PP1: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_HI [[fs_data_sym]]
; SHADERTEST2_PP1: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: v_add_co_u32_e32 {{v[0-9]*}}, vcc, {{s[0-9]*}}, {{v[0-9]*}}
; SHADERTEST2_PP1-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_HI [[fs_data_sym]]
; SHADERTEST2_PP1: 0000000000000000 <[[fs_data_sym]]>:
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 00000000
Expand Down
34 changes: 18 additions & 16 deletions llpc/test/shaderdb/general/PipelineVsFs_VsAndFsWithData.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
; RUN: amdllpc -enable-relocatable-shader-elf -o %t.elf %gfxip %s
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST %s
; REQUIRES: do-not-run-me
; SHADERTEST-LABEL: <_amdgpu_vs_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST-LABEL: <_amdgpu_ps_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[fs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_add_co_u32_e32 {{v[0-9]*}}, vcc, {{s[0-9]*}}, {{v[0-9]*}}
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[fs_data_sym]]
; SHADERTEST: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST-NEXT: 000000000000: 3F800000
; SHADERTEST-NEXT: 000000000004: 00000000
Expand Down Expand Up @@ -46,10 +48,10 @@
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST2_PP0 %s
; SHADERTEST2_PP0-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP0: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP0-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP0: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP0-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP0-LABEL: <__llpc_global_proxy_{{.*}}>
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 00000000
Expand All @@ -70,10 +72,10 @@
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST2_PP1 %s
; SHADERTEST2_PP1-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP1: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP1-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP1: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP1-LABEL: <.rodata.>
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 00000000
Expand Down
25 changes: 13 additions & 12 deletions llpc/test/shaderdb/general/PipelineVsFs_VsWithData.pipe
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
; BEGIN_SHADERTEST
; RUN: amdllpc -enable-relocatable-shader-elf -o %t.elf %gfxip %s && \
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST %s
; REQUIRES: do-not-run-me
; SHADERTEST-LABEL: <_amdgpu_vs_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST-NEXT: 000000000000: 3F800000
; SHADERTEST-NEXT: 000000000004: 00000000
Expand All @@ -26,10 +27,10 @@
; RUN: amdllpc -enable-part-pipeline=0 -o %t.elf %gfxip %s && \
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST2_PP0 %s
; SHADERTEST2_PP0-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP0: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP0-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP0: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_LO .rodata
; SHADERTEST2_PP0-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_HI .rodata
; SHADERTEST2_PP0-LABEL: <__llpc_global_proxy_{{.*}}>:
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP0-NEXT: {{[0-9]*}}: 00000000
Expand All @@ -49,10 +50,10 @@
; RUN: amdllpc -enable-part-pipeline=1 -o %t.elf %gfxip %s && \
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t.elf | FileCheck -check-prefix=SHADERTEST2_PP1 %s
; SHADERTEST2_PP1-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP1: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST2_PP1: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP1: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 3F800000
; SHADERTEST2_PP1-NEXT: {{[0-9]*}}: 00000000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
; RUN: amdllpc -enable-relocatable-shader-elf -o %t_0.elf %gfxip %s
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t_0.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST %s
; REQUIRES: do-not-run-me
; SHADERTEST-LABEL: <_amdgpu_vs_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST-LABEL: <_amdgpu_ps_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[fs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[fs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_add_co_u32_e32 {{v[0-9]*}}, vcc, {{s[0-9]*}}, {{v[0-9]*}}
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[fs_data_sym]]
; SHADERTEST: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST-NEXT: 000000000000: 3F800000
; SHADERTEST-NEXT: 000000000004: 00000000
Expand Down Expand Up @@ -46,10 +48,10 @@
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t_01.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST2_PP0 %s
; SHADERTEST2_PP0-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP0: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP0-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP0: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP0-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP0-LABEL: <__llpc_global_proxy_{{.*}}>
; SHADERTEST2_PP0-NEXT: 000000000000: 3F800000
; SHADERTEST2_PP0-NEXT: 000000000004: 00000000
Expand All @@ -70,10 +72,10 @@
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 -d -j .text -j .rodata -r %t_01.elf \
; RUN: | FileCheck -check-prefix=SHADERTEST2_PP1 %s
; SHADERTEST2_PP1-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP1: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP1-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP1: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP1-LABEL: <.rodata.>
; SHADERTEST2_PP1-NEXT: 000000000000: 3F800000
; SHADERTEST2_PP1-NEXT: 000000000004: 00000000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
; BEGIN_SHADERTEST
; RUN: amdllpc -enable-relocatable-shader-elf -o %t_0.elf %gfxip %s
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 --section=.text --section=.rodata -D -r %t_0.elf | FileCheck -check-prefix=SHADERTEST %s
; REQUIRES: do-not-run-me
; SHADERTEST-LABEL: <_amdgpu_vs_main>:
; SHADERTEST: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST-NEXT: 000000000000: 3F800000
; SHADERTEST-NEXT: 000000000004: 00000000
Expand All @@ -27,10 +28,10 @@
; RUN: amdllpc -enable-part-pipeline=0 -o %t_01.elf %gfxip %s
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 --section=.text --section=.rodata -D -r %t_01.elf | FileCheck -check-prefix=SHADERTEST2_PP0 %s
; SHADERTEST2_PP0-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP0: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_LO .rodata
; SHADERTEST2_PP0-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_REL32_HI .rodata
; SHADERTEST2_PP0: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_LO .rodata
; SHADERTEST2_PP0-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP0-NEXT: R_AMDGPU_ABS32_HI .rodata
; SHADERTEST2_PP0-LABEL: <__llpc_global_proxy_{{.*}}>:
; SHADERTEST2_PP0-NEXT: 000000000000: 3F800000
; SHADERTEST2_PP0-NEXT: 000000000004: 00000000
Expand All @@ -51,10 +52,10 @@
; RUN: amdllpc -enable-part-pipeline=1 -o %t_01.elf %gfxip %s
; RUN: llvm-objdump --arch=amdgcn --disassemble-zeroes --mcpu=gfx900 --section=.text --section=.rodata -D -r %t_01.elf | FileCheck -check-prefix=SHADERTEST2_PP1 %s
; SHADERTEST2_PP1-LABEL: <_amdgpu_vs_main>:
; SHADERTEST2_PP1: s_add_u32 {{s[0-9]*}}, {{s[0-9]*}}, 4
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: s_addc_u32 {{s[0-9]*}}, {{s[0-9]*}}, {{4|12}}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_REL32_HI [[vs_data_sym]]
; SHADERTEST2_PP1: s_mov_b32 {{s[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_LO [[vs_data_sym:[.a-z]*]]
; SHADERTEST2_PP1-NEXT: v_mov_b32_e32 {{v[0-9]*}}, {{0 }}
; SHADERTEST2_PP1-NEXT: R_AMDGPU_ABS32_HI [[vs_data_sym]]
; SHADERTEST2_PP1: 0000000000000000 <[[vs_data_sym]]>:
; SHADERTEST2_PP1-NEXT: 000000000000: 3F800000
; SHADERTEST2_PP1-NEXT: 000000000004: 00000000
Expand Down

0 comments on commit 5db5dab

Please sign in to comment.