xref: /llvm-project/llvm/test/Assembler/unsupported-constexprs.ll (revision 7283f48a05de46fe8721ee6c29b1b6427e7d1a33)
1; RUN: split-file %s %t
2; RUN: not llvm-as < %t/extractvalue.ll 2>&1 | FileCheck %s --check-prefix=EXTRACTVALUE
3; RUN: not llvm-as < %t/insertvalue.ll 2>&1 | FileCheck %s --check-prefix=INSERTVALUE
4
5;--- extractvalue.ll
6define i32 @extractvalue() {
7; EXTRACTVALUE: error: extractvalue constexprs are no longer supported
8  ret i32 extractvalue ({i32} {i32 3}, 0)
9}
10
11;--- insertvalue.ll
12define {i32} @insertvalue() {
13; INSERTVALUE: error: insertvalue constexprs are no longer supported
14  ret {i32} insertvalue ({i32} poison, i32 3, 0)
15}
16