brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 6a64d46 Raw
28 lines · plain
1# RUN: not llvm-mc -triple riscv32 -mattr=+zicbom < %s 2>&1 | FileCheck %s2# RUN: not llvm-mc -triple riscv64 -mattr=+zicbom < %s 2>&1 | FileCheck %s3 4# Must have a single register argument.5cbo.clean # CHECK: :[[@LINE]]:1: error: too few operands for instruction6cbo.flush # CHECK: :[[@LINE]]:1: error: too few operands for instruction7cbo.inval # CHECK: :[[@LINE]]:1: error: too few operands for instruction8 9cbo.clean 1 # CHECK: :[[@LINE]]:13: error: expected '(' after optional integer offset10cbo.flush 2 # CHECK: :[[@LINE]]:13: error: expected '(' after optional integer offset11cbo.inval 3 # CHECK: :[[@LINE]]:13: error: expected '(' after optional integer offset12 13cbo.clean t0, t1 # CHECK: :[[@LINE]]:11: error: expected '(' or optional integer offset14cbo.flush t0, t1 # CHECK: :[[@LINE]]:11: error: expected '(' or optional integer offset15cbo.inval t0, t1 # CHECK: :[[@LINE]]:11: error: expected '(' or optional integer offset16 17# Non-zero offsets are not supported.18cbo.clean 1(t0) # CHECK: :[[@LINE]]:11: error: optional integer offset must be 019cbo.flush 2(t0) # CHECK: :[[@LINE]]:11: error: optional integer offset must be 020cbo.inval 3(t0) # CHECK: :[[@LINE]]:11: error: optional integer offset must be 021 22# Instructions from other zicbo* extensions aren't available without enabling23# the appropriate -mattr flag.24cbo.zero (t0) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicboz' (Cache-Block Zero Instructions){{$}}25prefetch.i 0(t3) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}26prefetch.r 0(t4) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}27prefetch.w 0(t5) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}28