37 lines · plain
1// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+mops-go,+mte < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR2 3// Operands must be different from each other4 5// CHECK-ERROR: error: invalid SET instruction, destination and size registers are the same6// CHECK-ERROR: error: invalid SET instruction, destination and size registers are the same7// CHECK-ERROR: error: invalid SET instruction, destination and size registers are the same8setgop [x0]!, x0!9setgom [x0]!, x0!10setgoe [x0]!, x0!11 12// SP cannot be used as argument at any position13 14// CHECK-ERROR: error: invalid operand for instruction15// CHECK-ERROR: error: invalid operand for instruction16setgop [sp]!, x1!17setgop [x0]!, sp!18 19// CHECK-ERROR: error: invalid operand for instruction20// CHECK-ERROR: error: invalid operand for instruction21setgom [sp]!, x1!22setgom [x0]!, sp!23 24// CHECK-ERROR: error: invalid operand for instruction25// CHECK-ERROR: error: invalid operand for instruction26setgoe [sp]!, x1!27setgoe [x0]!, sp!28 29// CHECK-ERROR: error: invalid operand for instruction30setgop [xzr]!, x1!31 32// CHECK-ERROR: error: invalid operand for instruction33setgom [xzr]!, x1!34 35// CHECK-ERROR: error: invalid operand for instruction36setgoe [xzr]!, x1!37