1 ; RUN: opt -instsimplify -S < %s | FileCheck %s
6 %r = mul i64 undef, undef
11 ; CHECK: ret i64 undef
18 ; CHECK: ret i64 undef
39 ; CHECK: ret i64 undef
41 %r = and i64 undef, undef
46 ; CHECK: ret i64 undef
48 %r = or i64 undef, undef
53 ; CHECK: ret i64 undef
55 %r = udiv i64 undef, 1
60 ; CHECK: ret i64 undef
62 %r = sdiv i64 undef, 1
69 %r = urem i64 undef, 1
75 define i64 @test10() {
76 %r = srem i64 undef, 1
81 ; CHECK: ret i64 undef
82 define i64 @test11() {
83 %r = shl i64 undef, undef
88 ; CHECK: ret i64 undef
89 define i64 @test12() {
90 %r = ashr i64 undef, undef
95 ; CHECK: ret i64 undef
96 define i64 @test13() {
97 %r = lshr i64 undef, undef
102 ; CHECK: ret i1 undef
103 define i1 @test14() {
104 %r = icmp slt i64 undef, undef
109 ; CHECK: ret i1 undef
110 define i1 @test15() {
111 %r = icmp ult i64 undef, undef
116 ; CHECK: ret i64 undef
117 define i64 @test16(i64 %a) {
118 %r = select i1 undef, i64 %a, i64 undef
123 ; CHECK: ret i64 undef
124 define i64 @test17(i64 %a) {
125 %r = select i1 undef, i64 undef, i64 %a
130 ; CHECK: ret i64 undef
131 define i64 @test18(i64 %a) {
132 %r = call i64 (i64)* undef(i64 %a)