brintos

brintos / llvm-project-archived public Read only

0
0
Text · 667 B · 974fade Raw
20 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s2 3; Testing that these don't crash/assert. The loop vectorizer can end up4; with odd constructs like this. The code actually generated is incidental.5define <1 x i64> @test_zext(i32 %a) nounwind {6; CHECK-LABEL: test_zext:7  %Cmp = icmp uge i32 %a, 428  %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 09  %Se = zext <1 x i1> %vec to <1 x i64>10  ret <1 x i64> %Se11}12 13define <1 x i64> @test_sext(i32 %a) nounwind {14; CHECK-LABEL: test_sext:15  %Cmp = icmp uge i32 %a, 4216  %vec = insertelement <1 x i1> zeroinitializer, i1 %Cmp, i32 017  %Se = sext <1 x i1> %vec to <1 x i64>18  ret <1 x i64> %Se19}20