brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 5e82982 Raw
64 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -S -mtriple=aarch64 -passes=slp-vectorizer | FileCheck %s3 4%struct.buf = type { [8 x i8] }5 6define i8 @reduce_or(ptr %a, ptr %b) {7; CHECK-LABEL: @reduce_or(8; CHECK-NEXT:  entry:9; CHECK-NEXT:    [[TMP1:%.*]] = load <8 x i8>, ptr [[A:%.*]], align 110; CHECK-NEXT:    [[TMP3:%.*]] = load <8 x i8>, ptr [[B:%.*]], align 111; CHECK-NEXT:    [[TMP4:%.*]] = xor <8 x i8> [[TMP3]], [[TMP1]]12; CHECK-NEXT:    [[TMP5:%.*]] = call i8 @llvm.vector.reduce.or.v8i8(<8 x i8> [[TMP4]])13; CHECK-NEXT:    ret i8 [[TMP5]]14;15 16entry:17  %0 = load i8, ptr %a, align 118  %1 = load i8, ptr %b, align 119  %xor12 = xor i8 %1, %020  %arrayidx.1 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 121  %2 = load i8, ptr %arrayidx.1, align 122  %arrayidx3.1 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 123  %3 = load i8, ptr %arrayidx3.1, align 124  %xor12.1 = xor i8 %3, %225  %or13.1 = or i8 %xor12.1, %xor1226  %arrayidx.2 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 227  %4 = load i8, ptr %arrayidx.2, align 128  %arrayidx3.2 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 229  %5 = load i8, ptr %arrayidx3.2, align 130  %xor12.2 = xor i8 %5, %431  %or13.2 = or i8 %xor12.2, %or13.132  %arrayidx.3 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 333  %6 = load i8, ptr %arrayidx.3, align 134  %arrayidx3.3 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 335  %7 = load i8, ptr %arrayidx3.3, align 136  %xor12.3 = xor i8 %7, %637  %or13.3 = or i8 %xor12.3, %or13.238  %arrayidx.4 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 439  %8 = load i8, ptr %arrayidx.4, align 140  %arrayidx3.4 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 441  %9 = load i8, ptr %arrayidx3.4, align 142  %xor12.4 = xor i8 %9, %843  %or13.4 = or i8 %xor12.4, %or13.344  %arrayidx.5 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 545  %10 = load i8, ptr %arrayidx.5, align 146  %arrayidx3.5 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 547  %11 = load i8, ptr %arrayidx3.5, align 148  %xor12.5 = xor i8 %11, %1049  %or13.5 = or i8 %xor12.5, %or13.450  %arrayidx.6 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 651  %12 = load i8, ptr %arrayidx.6, align 152  %arrayidx3.6 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 653  %13 = load i8, ptr %arrayidx3.6, align 154  %xor12.6 = xor i8 %13, %1255  %or13.6 = or i8 %xor12.6, %or13.556  %arrayidx.7 = getelementptr inbounds %struct.buf, ptr %a, i64 0, i32 0, i64 757  %14 = load i8, ptr %arrayidx.7, align 158  %arrayidx3.7 = getelementptr inbounds %struct.buf, ptr %b, i64 0, i32 0, i64 759  %15 = load i8, ptr %arrayidx3.7, align 160  %xor12.7 = xor i8 %15, %1461  %or13.7 = or i8 %xor12.7, %or13.662  ret i8 %or13.763}64