summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-atomicrmw-xchg-must-be-integer-or-fp-type.ll
blob: d0a794bd0244a028a66ce14eba2aa067b882c872 (plain)
1
2
3
4
5
6
7
; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s

; CHECK: error: atomicrmw xchg operand must be an integer or floating point type
define void @f(i32** %ptr) {
  atomicrmw xchg i32** %ptr, i32* null seq_cst
  ret void
}
OpenPOWER on IntegriCloud