42 lines · plain
1; RUN: split-file %s %t --leading-lines2; RUN: not llvm-as < %t/scalable_fp_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR0 %s3; RUN: not llvm-as < %t/scalable_int_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR1 %s4; RUN: not llvm-as < %t/scalable_ptr_vector_atomicrmw_xchg.ll 2>&1 | FileCheck -check-prefix=ERR2 %s5; RUN: not llvm-as < %t/scalable_fp_vector_atomicrmw_fadd.ll 2>&1 | FileCheck -check-prefix=ERR3 %s6; RUN: not llvm-as < %t/scalable_int_vector_atomicrmw_add.ll 2>&1 | FileCheck -check-prefix=ERR4 %s7 8;--- scalable_fp_vector_atomicrmw_xchg.ll9define <vscale x 2 x half> @scalable_fp_vector_atomicrmw_xchg(ptr %x, <vscale x 2 x half> %val) {10; ERR0: :41: error: atomicrmw operand may not be scalable11 %atomic.xchg = atomicrmw xchg ptr %x, <vscale x 2 x half> %val seq_cst12 ret <vscale x 2 x half> %atomic.xchg13}14 15;--- scalable_int_vector_atomicrmw_xchg.ll16define <vscale x 2 x i16> @scalable_int_vector_atomicrmw_xchg(ptr %x, <vscale x 2 x i16> %val) {17; ERR1: :41: error: atomicrmw operand may not be scalable18 %atomic.xchg = atomicrmw xchg ptr %x, <vscale x 2 x i16> %val seq_cst19 ret <vscale x 2 x i16> %atomic.xchg20}21 22;--- scalable_ptr_vector_atomicrmw_xchg.ll23define <vscale x 2 x ptr> @scalable_ptr_vector_atomicrmw_xchg(ptr %x, <vscale x 2 x ptr> %val) {24; ERR2: :41: error: atomicrmw operand may not be scalable25 %atomic.xchg = atomicrmw xchg ptr %x, <vscale x 2 x ptr> %val seq_cst26 ret <vscale x 2 x ptr> %atomic.xchg27}28 29;--- scalable_fp_vector_atomicrmw_fadd.ll30define <vscale x 2 x half> @scalable_fp_vector_atomicrmw_fadd(ptr %x, <vscale x 2 x half> %val) {31; ERR3: :41: error: atomicrmw operand may not be scalable32 %atomic.fadd = atomicrmw fadd ptr %x, <vscale x 2 x half> %val seq_cst33 ret <vscale x 2 x half> %atomic.fadd34}35 36;--- scalable_int_vector_atomicrmw_add.ll37define <vscale x 2 x i16> @scalable_int_vector_atomicrmw_add(ptr %x, <vscale x 2 x i16> %val) {38; ERR4: :39: error: atomicrmw operand may not be scalable39 %atomic.add = atomicrmw add ptr %x, <vscale x 2 x i16> %val seq_cst40 ret <vscale x 2 x i16> %atomic.add41}42