diff options
Diffstat (limited to 'llvm/test/MC/AMDGPU/vop1.s')
-rw-r--r-- | llvm/test/MC/AMDGPU/vop1.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/MC/AMDGPU/vop1.s b/llvm/test/MC/AMDGPU/vop1.s index 22a4f91afef..e82206a7ada 100644 --- a/llvm/test/MC/AMDGPU/vop1.s +++ b/llvm/test/MC/AMDGPU/vop1.s @@ -374,3 +374,13 @@ v_sin_f16 v1, v2 // NOSICI: v_cos_f16 v1, v2 // VI: v_cos_f16_e32 v1, v2 ; encoding: [0x02,0x95,0x02,0x7e] v_cos_f16 v1, v2 + +//===----------------------------------------------------------------------===// +// Floating point literals +//===----------------------------------------------------------------------===// + +// GCN: v_mov_b32_e32 v0, 0.5 ; encoding: [0xf0,0x02,0x00,0x7e] +v_mov_b32 v0, 0.5 + +// GCN: v_mov_b32_e32 v0, 0x40480000 ; encoding: [0xff,0x02,0x00,0x7e,0x00,0x00,0x48,0x40] +v_mov_b32 v0, 3.125
\ No newline at end of file |