blob: 852d18e8de79f607cbd46a9ddab5b2c5154f57e8 [file] [log] [blame]
Richard Sandiford39c1ce42013-10-28 11:17:59 +00001; Test 32-bit ANDs in which the second operand is variable.
2;
Richard Sandiford094e6092013-10-28 13:53:37 +00003; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
Richard Sandiford39c1ce42013-10-28 11:17:59 +00004
Richard Sandiford39c1ce42013-10-28 11:17:59 +00005; Check that there are no spills.
6define void @f1(<16 x i32> *%src1, <16 x float> *%dest) {
7; CHECK-LABEL: f1:
8; CHECK-NOT: %r15
9; CHECK: br %r14
David Blaikiea79ac142015-02-27 21:17:42 +000010 %val = load <16 x i32> , <16 x i32> *%src1, !tbaa !1
Richard Sandiford39c1ce42013-10-28 11:17:59 +000011 %add = add <16 x i32> %val, %val
12 %res = bitcast <16 x i32> %add to <16 x float>
13 store <16 x float> %res, <16 x float> *%dest, !tbaa !2
14 ret void
15}
16
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000017!0 = !{ !"root" }
18!1 = !{ !"set1", !0 }
19!2 = !{ !"set2", !0 }