diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-11-01 23:14:20 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-11-01 23:14:20 +0000 |
commit | 663ab8c1190c78a534c4bce1d6c8093537e06a72 (patch) | |
tree | 8f3f737865ad46fb80dd9d7249f0ede72fda6348 /llvm/test/CodeGen/AMDGPU/fneg-fabs.ll | |
parent | cfadbd947808e81f760f344477121a7028ff1edc (diff) | |
download | bcm5719-llvm-663ab8c1190c78a534c4bce1d6c8093537e06a72.tar.gz bcm5719-llvm-663ab8c1190c78a534c4bce1d6c8093537e06a72.zip |
AMDGPU: Use brev for materializing SGPR constants
This is already done with VGPR immediates and saves 4 bytes.
llvm-svn: 285765
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/fneg-fabs.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/fneg-fabs.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/fneg-fabs.ll b/llvm/test/CodeGen/AMDGPU/fneg-fabs.ll index 1362fa7a908..9ee1171306c 100644 --- a/llvm/test/CodeGen/AMDGPU/fneg-fabs.ll +++ b/llvm/test/CodeGen/AMDGPU/fneg-fabs.ll @@ -83,7 +83,7 @@ define void @v_fneg_fabs_f32(float addrspace(1)* %out, float addrspace(1)* %in) ; R600: -PV ; FIXME: In this case two uses of the constant should be folded -; SI: s_mov_b32 [[SIGNBITK:s[0-9]+]], 0x80000000 +; SI: s_brev_b32 [[SIGNBITK:s[0-9]+]], 1{{$}} ; SI: v_or_b32_e32 v{{[0-9]+}}, [[SIGNBITK]], v{{[0-9]+}} ; SI: v_or_b32_e32 v{{[0-9]+}}, [[SIGNBITK]], v{{[0-9]+}} define void @fneg_fabs_v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) { @@ -94,7 +94,7 @@ define void @fneg_fabs_v2f32(<2 x float> addrspace(1)* %out, <2 x float> %in) { } ; FUNC-LABEL: {{^}}fneg_fabs_v4f32: -; SI: s_mov_b32 [[SIGNBITK:s[0-9]+]], 0x80000000 +; SI: s_brev_b32 [[SIGNBITK:s[0-9]+]], 1{{$}} ; SI: v_or_b32_e32 v{{[0-9]+}}, [[SIGNBITK]], v{{[0-9]+}} ; SI: v_or_b32_e32 v{{[0-9]+}}, [[SIGNBITK]], v{{[0-9]+}} ; SI: v_or_b32_e32 v{{[0-9]+}}, [[SIGNBITK]], v{{[0-9]+}} |