================
@@ -0,0 +1,17 @@
+; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 
2>&1 | FileCheck %s
+
+; DXIL operation UAddc only supports i32. Other integer types are unsupported.
+; CHECK: in function uaddc_i16
----------------
Icohedron wrote:

LLVM ERROR is not output there.

The full error message is: `error: <unknown>:0:0: in function uaddc_i16 i16 
(i16, i16): Cannot create UAddc operation: Invalid overload type`

This is similar to the way other directx error tests were written, such as 
[cos](https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/DirectX/cos_error.ll)

https://github.com/llvm/llvm-project/pull/125319
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to