diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-07-30 22:00:17 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-30 22:00:17 +0000 |
commit | 60bf5996073607f31dd41f36e77b6f49d6f10382 (patch) | |
tree | fe8db29182f2f3ae5f8f1c450d417ceebf6d4ab3 /llvm/test | |
parent | a06c0c6401fd793cfbef1b15630a65d740ff4095 (diff) | |
download | bcm5719-llvm-60bf5996073607f31dd41f36e77b6f49d6f10382.tar.gz bcm5719-llvm-60bf5996073607f31dd41f36e77b6f49d6f10382.zip |
MIR Parser: Report an error when a constant pool item is redefined.
llvm-svn: 243696
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir b/llvm/test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir new file mode 100644 index 00000000000..0ff67302876 --- /dev/null +++ b/llvm/test/CodeGen/MIR/X86/constant-pool-item-redefinition-error.mir @@ -0,0 +1,27 @@ +# RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s + +--- | + + define double @test(double %a, float %b) { + entry: + %c = fadd double %a, 3.250000e+00 + ret double %c + } + +... +--- +name: test +constants: + - id: 0 + value: 'double 3.250000e+00' +# CHECK: [[@LINE+1]]:18: redefinition of constant pool item '%const.0' + - id: 0 + value: 'double 3.250000e+00' +body: + - id: 0 + name: entry + instructions: + - '%xmm0 = ADDSDrm killed %xmm0, %rip, 1, _, %const.0, _' + - 'RETQ %xmm0' +... + |