58 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt -S -passes=slp-vectorizer -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s3 4define i1 @degenerate() {5; CHECK-LABEL: define i1 @degenerate() {6; CHECK-NEXT: entry:7; CHECK-NEXT: [[TMP0:%.*]] = extractelement <4 x fp128> zeroinitializer, i32 08; CHECK-NEXT: [[CMP:%.*]] = fcmp ogt fp128 [[TMP0]], 0xL000000000000000000000000000000009; CHECK-NEXT: [[CMP3:%.*]] = fcmp olt fp128 [[TMP0]], 0xL0000000000000000000000000000000010; CHECK-NEXT: [[OR_COND:%.*]] = and i1 [[CMP]], [[CMP3]]11; CHECK-NEXT: [[TMP1:%.*]] = extractelement <4 x fp128> zeroinitializer, i32 012; CHECK-NEXT: [[CMP6:%.*]] = fcmp ogt fp128 [[TMP1]], 0xL0000000000000000000000000000000013; CHECK-NEXT: [[OR_COND29:%.*]] = select i1 [[OR_COND]], i1 [[CMP6]], i1 false14; CHECK-NEXT: [[CMP10:%.*]] = fcmp olt fp128 [[TMP1]], 0xL0000000000000000000000000000000015; CHECK-NEXT: [[OR_COND30:%.*]] = select i1 [[OR_COND29]], i1 [[CMP10]], i1 false16; CHECK-NEXT: ret i1 [[OR_COND30]]17;18entry:19 %0 = extractelement <4 x fp128> zeroinitializer, i32 020 %cmp = fcmp ogt fp128 %0, 0xL0000000000000000000000000000000021 %cmp3 = fcmp olt fp128 %0, 0xL0000000000000000000000000000000022 %or.cond = and i1 %cmp, %cmp323 %1 = extractelement <4 x fp128> zeroinitializer, i32 024 %cmp6 = fcmp ogt fp128 %1, 0xL0000000000000000000000000000000025 %or.cond29 = select i1 %or.cond, i1 %cmp6, i1 false26 %cmp10 = fcmp olt fp128 %1, 0xL0000000000000000000000000000000027 %or.cond30 = select i1 %or.cond29, i1 %cmp10, i1 false28 ret i1 %or.cond3029}30 31define i1 @with_inputs(<4 x fp128> %a) {32; CHECK-LABEL: define i1 @with_inputs33; CHECK-SAME: (<4 x fp128> [[A:%.*]]) {34; CHECK-NEXT: entry:35; CHECK-NEXT: [[TMP0:%.*]] = extractelement <4 x fp128> [[A]], i32 036; CHECK-NEXT: [[CMP:%.*]] = fcmp ogt fp128 [[TMP0]], 0xL0000000000000000000000000000000037; CHECK-NEXT: [[CMP3:%.*]] = fcmp olt fp128 [[TMP0]], 0xL0000000000000000000000000000000038; CHECK-NEXT: [[OR_COND:%.*]] = and i1 [[CMP]], [[CMP3]]39; CHECK-NEXT: [[TMP1:%.*]] = extractelement <4 x fp128> [[A]], i32 140; CHECK-NEXT: [[CMP6:%.*]] = fcmp ogt fp128 [[TMP1]], 0xL0000000000000000000000000000000041; CHECK-NEXT: [[OR_COND29:%.*]] = select i1 [[OR_COND]], i1 [[CMP6]], i1 false42; CHECK-NEXT: [[CMP10:%.*]] = fcmp olt fp128 [[TMP1]], 0xL0000000000000000000000000000000043; CHECK-NEXT: [[OR_COND30:%.*]] = select i1 [[OR_COND29]], i1 [[CMP10]], i1 false44; CHECK-NEXT: ret i1 [[OR_COND30]]45;46entry:47 %0 = extractelement <4 x fp128> %a, i32 048 %cmp = fcmp ogt fp128 %0, 0xL0000000000000000000000000000000049 %cmp3 = fcmp olt fp128 %0, 0xL0000000000000000000000000000000050 %or.cond = and i1 %cmp, %cmp351 %1 = extractelement <4 x fp128> %a, i32 152 %cmp6 = fcmp ogt fp128 %1, 0xL0000000000000000000000000000000053 %or.cond29 = select i1 %or.cond, i1 %cmp6, i1 false54 %cmp10 = fcmp olt fp128 %1, 0xL0000000000000000000000000000000055 %or.cond30 = select i1 %or.cond29, i1 %cmp10, i1 false56 ret i1 %or.cond3057}58