1; RUN: llc < %s -march=mipsel | FileCheck %s 2 3@g1 = external global i32 4 5define i32 @foo0(i32 %s) nounwind readonly { 6entry: 7; CHECK: movn ${{[0-9]+}}, $zero 8 %tobool = icmp ne i32 %s, 0 9 %0 = load i32* @g1, align 4, !tbaa !0 10 %cond = select i1 %tobool, i32 0, i32 %0 11 ret i32 %cond 12} 13 14define i32 @foo1(i32 %s) nounwind readonly { 15entry: 16; CHECK: movz ${{[0-9]+}}, $zero 17 %tobool = icmp ne i32 %s, 0 18 %0 = load i32* @g1, align 4, !tbaa !0 19 %cond = select i1 %tobool, i32 %0, i32 0 20 ret i32 %cond 21} 22 23!0 = metadata !{metadata !"int", metadata !1} 24!1 = metadata !{metadata !"omnipotent char", metadata !2} 25!2 = metadata !{metadata !"Simple C/C++ TBAA", null} 26