You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
535 B
20 lines
535 B
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
|
|
|
define {i32, i32} @poison({i32, i32} %x) {
|
|
; CHECK-LABEL: @poison(
|
|
; CHECK-NEXT: ret { i32, i32 } [[X:%.*]]
|
|
;
|
|
%v = insertvalue {i32, i32} %x, i32 poison, 0
|
|
ret {i32, i32} %v
|
|
}
|
|
|
|
define {i32, i32} @poison2({i32, i32} %x) {
|
|
; CHECK-LABEL: @poison2(
|
|
; CHECK-NEXT: ret { i32, i32 } [[X:%.*]]
|
|
;
|
|
%elem = extractvalue {i32, i32} %x, 0
|
|
%v = insertvalue {i32, i32} poison, i32 %elem, 0
|
|
ret {i32, i32} %v
|
|
}
|