mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
2f98a55682
This commit implements the initial serialization of machine constant pools and the constant pool index machine operands. The constant pool is serialized using a YAML sequence of YAML mappings that represent the constant values. The target-specific constant pool items aren't serialized by this commit. Reviewers: Duncan P. N. Exon Smith llvm-svn: 242707
28 lines
617 B
YAML
28 lines
617 B
YAML
# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
|
|
# This test ensures that the MIR parser reports an error when parsing an invalid
|
|
# constant value.
|
|
|
|
--- |
|
|
|
|
define double @test(double %a, float %b) {
|
|
entry:
|
|
%c = fadd double %a, 3.250000e+00
|
|
ret double %c
|
|
}
|
|
|
|
...
|
|
---
|
|
name: test
|
|
constants:
|
|
- id: 0
|
|
# CHECK: [[@LINE+1]]:19: expected type
|
|
value: 'dub 3.250000e+00'
|
|
body:
|
|
- id: 0
|
|
name: entry
|
|
instructions:
|
|
- '%xmm0 = ADDSDrm killed %xmm0, %rip, 1, _, %const.0, _'
|
|
- 'RETQ %xmm0'
|
|
...
|
|
|