brintos

brintos / llvm-project-archived public Read only

0
0
Text · 819 B · 352d689 Raw
26 lines · plain
1# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that the MIR parser detects errors when parsing machine3# metadata.4--- |5  target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"6  target triple = "x86_64-unknown-linux-gnu"7 8  define i32 @test_memcpy(ptr nocapture %p, ptr nocapture readonly %q) {9    ret i32 010  }11...12---13name:            test_memcpy14machineMetadataNodes:15  - '!7 = distinct !{!7, !"MemcpyLoweringDomain"}'16  - '!9 = distinct !{!9, !7, !"Dst"}'17  - '!5 = !{!6}'18  - '!6 = distinct !{!6, !7, !"Src"}'19  - '!10 = !{!9}'20body:             |21  bb.0 (%ir-block.0):22  ; CHECK: [[@LINE+1]]:96: use of undefined metadata '!11'23    %2:gr64 = MOV64rm %0, 1, $noreg, 16, $noreg :: (load 8, align 4, !alias.scope !5, !noalias !11)24 25...26