1 ; Ensure constant propogation of logical instructions is working correctly.
3 ; RUN: opt < %s -constprop -die -S | FileCheck %s
4 ; CHECK-NOT: {{and|or|xor}}
7 %R = and i32 4, 1234 ; <i32> [#uses=1]
11 define i1 @test1.upgrd.1() {
12 %R = and i1 true, false ; <i1> [#uses=1]
17 %R = or i32 4, 1234 ; <i32> [#uses=1]
21 define i1 @test2.upgrd.2() {
22 %R = or i1 true, false ; <i1> [#uses=1]
27 %R = xor i32 4, 1234 ; <i32> [#uses=1]
31 define i1 @test3.upgrd.3() {
32 %R = xor i1 true, false ; <i1> [#uses=1]