diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2016-07-22 23:46:40 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2016-07-22 23:46:40 +0000 |
| commit | b8253c88b6d16b145623b712419cd7f9a1368ee9 (patch) | |
| tree | c6656947b34d7e52577da0704c6aa00c453afecb /llvm/test/CodeGen | |
| parent | d835b3f1af15e20bd35c460396e4af95a614889c (diff) | |
| download | bcm5719-llvm-b8253c88b6d16b145623b712419cd7f9a1368ee9.tar.gz bcm5719-llvm-b8253c88b6d16b145623b712419cd7f9a1368ee9.zip | |
Revert "[AMDGPU] Emit read-only data to .rodata for hsa"
This reverts commit r276298.
Data stored in .rodata can have a negative offset from .text, but we
don't support negative values in relocations yet.
This caused a regression in one of the amp conformance tests:
5_Data_Cont/5_2_a_v/5_2_3_m/Assignment/Test.02.01
llvm-svn: 276498
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/global-constant.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/hsa-globals.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/global-constant.ll b/llvm/test/CodeGen/AMDGPU/global-constant.ll index 9eb5819bf6f..0f2fc836a24 100644 --- a/llvm/test/CodeGen/AMDGPU/global-constant.ll +++ b/llvm/test/CodeGen/AMDGPU/global-constant.ll @@ -12,7 +12,7 @@ ; GCN-NEXT: s_add_u32 s{{[0-9]+}}, s[[PC1_LO]], readonly ; GCN: s_addc_u32 s{{[0-9]+}}, s[[PC1_HI]], 0 ; NOHSA: .text -; HSA: .section .rodata +; HSA: .text ; GCN: readonly: ; GCN: readonly2: define void @main(i32 %index, float addrspace(1)* %out) { diff --git a/llvm/test/CodeGen/AMDGPU/hsa-globals.ll b/llvm/test/CodeGen/AMDGPU/hsa-globals.ll index 2820b308edb..df478fbcf3b 100644 --- a/llvm/test/CodeGen/AMDGPU/hsa-globals.ll +++ b/llvm/test/CodeGen/AMDGPU/hsa-globals.ll @@ -38,7 +38,7 @@ define void @test() { ; ASM: .size external_global_program, 4 ; ASM: .type internal_readonly,@object -; ASM: .section .rodata.cst4,"aM",@progbits,4 +; ASM: .text ; ASM: internal_readonly: ; ASM: .long 0 ; ASM: .size internal_readonly, 4 |

