| Alex Lorenz | ab98049 | 2015-07-20 20:51:18 +0000 | [diff] [blame] | 1 | # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s |
| 2 | # This test ensures that the MIR parser reports an error when parsing an invalid |
| 3 | # constant value. |
| 4 | |
| 5 | --- | |
| 6 | |
| 7 | define double @test(double %a, float %b) { |
| 8 | entry: |
| 9 | %c = fadd double %a, 3.250000e+00 |
| 10 | ret double %c |
| 11 | } |
| 12 | |
| 13 | ... |
| 14 | --- |
| 15 | name: test |
| 16 | constants: |
| 17 | - id: 0 |
| 18 | # CHECK: [[@LINE+1]]:19: expected type |
| 19 | value: 'dub 3.250000e+00' |
| Alex Lorenz | 5022f6b | 2015-08-13 23:10:16 +0000 | [diff] [blame] | 20 | body: | |
| 21 | bb.0.entry: |
| 22 | %xmm0 = ADDSDrm killed %xmm0, %rip, 1, _, %const.0, _ |
| 23 | RETQ %xmm0 |
| Alex Lorenz | ab98049 | 2015-07-20 20:51:18 +0000 | [diff] [blame] | 24 | ... |
| 25 | |