diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-09-17 17:32:13 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-09-17 17:32:13 +0000 |
commit | 02dc26529e653854bd97dfb946e48199d449bd98 (patch) | |
tree | 62e469b4ae88f0cd0dd9d6dca536418d39b2e705 /llvm/test/CodeGen/R600/uint_to_fp.ll | |
parent | 95bbdf6428d0711cac8201f1d4ca93d598711295 (diff) | |
download | bcm5719-llvm-02dc26529e653854bd97dfb946e48199d449bd98.tar.gz bcm5719-llvm-02dc26529e653854bd97dfb946e48199d449bd98.zip |
R600/SI: Change formatting of printed FP immediates
Only 1 decimal place should be printed for inline immediates.
Other constants should be hex constants.
Does not include f64 tests because folding those inline
immediates currently does not work.
llvm-svn: 217964
Diffstat (limited to 'llvm/test/CodeGen/R600/uint_to_fp.ll')
-rw-r--r-- | llvm/test/CodeGen/R600/uint_to_fp.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/R600/uint_to_fp.ll b/llvm/test/CodeGen/R600/uint_to_fp.ll index 8f5d42d42c6..9d4dacff371 100644 --- a/llvm/test/CodeGen/R600/uint_to_fp.ll +++ b/llvm/test/CodeGen/R600/uint_to_fp.ll @@ -49,7 +49,7 @@ entry: ; FUNC-LABEL: @uint_to_fp_i1_f32: ; SI: V_CMP_EQ_I32_e64 [[CMP:s\[[0-9]+:[0-9]\]]], -; SI-NEXT: V_CNDMASK_B32_e64 [[RESULT:v[0-9]+]], 0, 1.000000e+00, [[CMP]] +; SI-NEXT: V_CNDMASK_B32_e64 [[RESULT:v[0-9]+]], 0, 1.0, [[CMP]] ; SI: BUFFER_STORE_DWORD [[RESULT]], ; SI: S_ENDPGM define void @uint_to_fp_i1_f32(float addrspace(1)* %out, i32 %in) { @@ -60,7 +60,7 @@ define void @uint_to_fp_i1_f32(float addrspace(1)* %out, i32 %in) { } ; FUNC-LABEL: @uint_to_fp_i1_f32_load: -; SI: V_CNDMASK_B32_e64 [[RESULT:v[0-9]+]], 0, 1.000000e+00 +; SI: V_CNDMASK_B32_e64 [[RESULT:v[0-9]+]], 0, 1.0 ; SI: BUFFER_STORE_DWORD [[RESULT]], ; SI: S_ENDPGM define void @uint_to_fp_i1_f32_load(float addrspace(1)* %out, i1 %in) { |