Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AMDGPU / inline-imm-inv2pi.s
blobd730bb32c9f13b81845a68d8444048752f8fe5bb
1 // RUN: llvm-mc -triple=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=SI %s
2 // RUN: llvm-mc -triple=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s
4 // The value inv2pi should not assert on any targets, but is
5 // printed differently depending on whether it's a legal inline
6 // immediate or not.
8 // SI: v_cvt_f32_f16_e32 v0, 0x3118 ; encoding: [0xff,0x16,0x00,0x7e,0x18,0x31,0x00,0x00]
9 // VI: v_cvt_f32_f16_e32 v0, 0.15915494 ; encoding: [0xf8,0x16,0x00,0x7e]
10 v_cvt_f32_f16_e32 v0, 0x3118