brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e093958 Raw
20 lines · plain
1# RUN: not llvm-mc -triple riscv32 -mattr=+zicboz < %s 2>&1 | FileCheck %s2# RUN: not llvm-mc -triple riscv64 -mattr=+zicboz < %s 2>&1 | FileCheck %s3 4# Must have a single register argument.5cbo.zero # CHECK: :[[@LINE]]:1: error: too few operands for instruction6cbo.zero 1 # CHECK: :[[@LINE]]:12: error: expected '(' after optional integer offset7cbo.zero t0, t1 # CHECK: :[[@LINE]]:10: error: expected '(' or optional integer offset8 9# Non-zero offsets are not supported.10cbo.zero 1(t0) # CHECK: :[[@LINE]]:10: error: optional integer offset must be 011 12# Instructions from other zicbo* extensions aren't available without enabling13# the appropriate -mattr flag.14cbo.clean (t0) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbom' (Cache-Block Management Instructions){{$}}15cbo.flush (t1) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbom' (Cache-Block Management Instructions){{$}}16cbo.inval (t2) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbom' (Cache-Block Management Instructions){{$}}17prefetch.i 0(t3) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}18prefetch.r 0(t4) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}19prefetch.w 0(t5) # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'Zicbop' (Cache-Block Prefetch Instructions){{$}}20