brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · ac8b242 Raw
47 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -mtriple=x86_64-pc-linux-gnu -mcpu=generic -passes=slp-vectorizer --slp-max-reg-size=256 -pass-remarks-output=%t < %s | FileCheck %s3; RUN: FileCheck --input-file=%t --check-prefix=YAML %s4 5; This type is not supported by SLP6define i1 @test(ptr %i1, ptr %i2, i1 %arg) {7; CHECK-LABEL: @test(8; CHECK-NEXT:  entry:9; CHECK-NEXT:    [[I1_0:%.*]] = load x86_fp80, ptr [[I1:%.*]], align 1610; CHECK-NEXT:    [[I1_GEP1:%.*]] = getelementptr x86_fp80, ptr [[I1]], i64 111; CHECK-NEXT:    [[I1_1:%.*]] = load x86_fp80, ptr [[I1_GEP1]], align 1612; CHECK-NEXT:    br i1 %arg, label [[THEN:%.*]], label [[END:%.*]]13; CHECK:       then:14; CHECK-NEXT:    [[I2_0:%.*]] = load x86_fp80, ptr [[I2:%.*]], align 1615; CHECK-NEXT:    [[I2_GEP1:%.*]] = getelementptr inbounds x86_fp80, ptr [[I2]], i64 116; CHECK-NEXT:    [[I2_1:%.*]] = load x86_fp80, ptr [[I2_GEP1]], align 1617; CHECK-NEXT:    br label [[END]]18; CHECK:       end:19; CHECK-NEXT:    [[PHI0:%.*]] = phi x86_fp80 [ [[I1_0]], [[ENTRY:%.*]] ], [ [[I2_0]], [[THEN]] ]20; CHECK-NEXT:    [[PHI1:%.*]] = phi x86_fp80 [ [[I1_1]], [[ENTRY]] ], [ [[I2_1]], [[THEN]] ]21; CHECK-NEXT:    [[RES:%.*]] = fcmp oeq x86_fp80 [[PHI0]], [[PHI1]]22; CHECK-NEXT:    ret i1 [[RES]]23;24entry:25  %i1.0 = load x86_fp80, ptr %i1, align 1626  %i1.gep1 = getelementptr x86_fp80, ptr %i1, i64 127  %i1.1 = load x86_fp80, ptr %i1.gep1, align 1628  br i1 %arg, label %then, label %end29then:30  %i2.0 = load x86_fp80, ptr %i2, align 1631  %i2.gep1 = getelementptr inbounds x86_fp80, ptr %i2, i64 132  %i2.1 = load x86_fp80, ptr %i2.gep1, align 1633  br label %end34end:35  %phi0 = phi x86_fp80 [ %i1.0, %entry ], [ %i2.0, %then ]36  %phi1 = phi x86_fp80 [ %i1.1, %entry ], [ %i2.1, %then ]37  %res = fcmp oeq x86_fp80 %phi0, %phi138  ; YAML:      Pass:            slp-vectorizer39  ; YAML-NEXT: Name:            UnsupportedType40  ; YAML-NEXT: Function:        test41  ; YAML-NEXT: Args:42  ; YAML-NEXT:   - String:          'Cannot SLP vectorize list: type '43  ; YAML-NEXT:   - String:          x86_fp80 is unsupported by vectorizer44 45  ret i1 %res46}47