1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -instcombine < %s | FileCheck %s
4 define void @test_shl(i1 %x) {
5 ; CHECK-LABEL: @test_shl(
6 ; CHECK-NEXT: call void @sink(i8 0)
12 call void @sink(i8 %a)
16 define void @test_lshr(i1 %x) {
17 ; CHECK-LABEL: @test_lshr(
18 ; CHECK-NEXT: call void @sink(i8 0)
19 ; CHECK-NEXT: ret void
24 call void @sink(i8 %a)
28 define void @test_ashr(i1 %x) {
29 ; CHECK-LABEL: @test_ashr(
30 ; CHECK-NEXT: call void @sink(i8 0)
31 ; CHECK-NEXT: ret void
36 call void @sink(i8 %a)
40 define void @test_udiv(i8 %x) {
41 ; CHECK-LABEL: @test_udiv(
42 ; CHECK-NEXT: call void @sink(i8 0)
43 ; CHECK-NEXT: ret void
47 call void @sink(i8 %z)
51 declare void @sink(i8)