; RUN: split-file %s %t --leading-lines ; RUN: not llvm-as < %t/scalable_fp_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR0 %s ; RUN: not llvm-as < %t/scalable_int_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR1 %s ; RUN: not llvm-as < %t/scalable_ptr_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR2 %s ; RUN: not llvm-as < %t/scalable_fp_vector_atomicrmw_fadd.ll 2>&1 | FileCheck -check-prefix=ERR3 %s ; RUN: not llvm-as < %t/scalable_int_vector_atomicrmw_add.ll 2>&1 | FileCheck -check-prefix=ERR4 %s ;--- scalable_fp_vector_atomicrmw_xchg.ll define @scalable_fp_vector_atomicrmw_xchg(ptr %x, %val) { ; ERR0: :41: error: atomicrmw operand may not be scalable %atomic.xchg = atomicrmw xchg ptr %x, %val seq_cst ret %atomic.xchg } ;--- scalable_int_vector_atomicrmw_xchg.ll define @scalable_int_vector_atomicrmw_xchg(ptr %x, %val) { ; ERR1: :41: error: atomicrmw operand may not be scalable %atomic.xchg = atomicrmw xchg ptr %x, %val seq_cst ret %atomic.xchg } ;--- scalable_ptr_vector_atomicrmw_xchg.ll define @scalable_ptr_vector_atomicrmw_xchg(ptr %x, %val) { ; ERR2: :41: error: atomicrmw operand may not be scalable %atomic.xchg = atomicrmw xchg ptr %x, %val seq_cst ret %atomic.xchg } ;--- scalable_fp_vector_atomicrmw_fadd.ll define @scalable_fp_vector_atomicrmw_fadd(ptr %x, %val) { ; ERR3: :41: error: atomicrmw operand may not be scalable %atomic.fadd = atomicrmw fadd ptr %x, %val seq_cst ret %atomic.fadd } ;--- scalable_int_vector_atomicrmw_add.ll define @scalable_int_vector_atomicrmw_add(ptr %x, %val) { ; ERR4: :39: error: atomicrmw operand may not be scalable %atomic.add = atomicrmw add ptr %x, %val seq_cst ret %atomic.add }