clang/test/CIR/IR/invalid-atomic.cir
raw| 1 | // RUN: cir-opt %s -verify-diagnostics -split-input-file |
| 2 | |
| 3 | cir.func @f1(%arg0: !cir.ptr<!cir.float>, %arg1: !cir.float) { |
| 4 | // expected-error @below {{only atomic add, sub, max, and min operation could operate on floating-point values}} |
| 5 | %0 = cir.atomic.fetch and seq_cst %arg0, %arg1 : (!cir.ptr<!cir.float>, !cir.float) -> !cir.float |
| 6 | cir.return |
| 7 | } |