brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · a08b080 Raw
41 lines · plain
1# RUN: not --crash llc -o - -mtriple=aarch64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2# REQUIRES: aarch64-registered-target3 4---5name: test_fcmp6legalized: true7regBankSelected: false8selected: false9tracksRegLiveness: true10liveins:11body: |12  bb.0:13    liveins: $x0, $w0, $q014    %s32:_(s32) = COPY $w015    %ptr:_(p0) = COPY $x016 17    G_PREFETCH %ptr18    ; CHECK: *** Bad machine code: Too few operands ***19    ; CHECK: 4 operands expected, but 1 given.20 21    G_PREFETCH %ptr, 0, 0, 0, 022    ; CHECK: *** Bad machine code: Extra explicit operand on non-variadic instruction ***23    ; CHECK: operand 4:24 25    G_PREFETCH %s32, 0, 0, 026    ; CHECK: *** Bad machine code: addr operand must be a pointer ***27    ; CHECK: operand 0:28 29    G_PREFETCH %ptr, 10, 0, 030    ; CHECK: *** Bad machine code: rw operand must be an immediate 0-1 ***31    ; CHECK: operand 1:32 33    G_PREFETCH %ptr, 0, 10, 034    ; CHECK: *** Bad machine code: locality operand must be an immediate 0-3 ***35    ; CHECK: operand 2:36 37    G_PREFETCH %ptr, 0, 0, 1038    ; CHECK: *** Bad machine code: cache type operand must be an immediate 0-1 ***39    ; CHECK: operand 3:40...41