MIR Serialization: Serialize the floating point immediate machine operands.
[oota-llvm.git] / test / CodeGen / MIR / NVPTX / expected-floating-point-literal.mir
1 # RUN: not llc -march=nvptx -mcpu=sm_20 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   define float @test(float %k) {
6   entry:
7     %0 = fadd float %k, 3.250000e+00
8     ret float %0
9   }
10
11 ...
12 ---
13 name:            test
14 registers:
15   - { id: 0, class: float32regs }
16   - { id: 1, class: float32regs }
17 body:
18   - id:              0
19     name:            entry
20     instructions:
21       - '%0 = LD_f32_avar 0, 4, 1, 2, 32, $test_param_0'
22 # CHECK: [[@LINE+1]]:38: expected a floating point literal
23       - '%1 = FADD_rnf32ri %0, float 3'
24       - 'StoreRetvalF32 %1, 0'
25       - Return
26 ...