1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64-none-linux-gnu -verify-machineinstrs | FileCheck %s
4 define i32 @vec_extract_branch(<2 x double> %x, i32 %y) {
5 ; CHECK-LABEL: vec_extract_branch:
7 ; CHECK-NEXT: fcmgt v0.2d, v0.2d, #0.0
8 ; CHECK-NEXT: xtn v0.2s, v0.2d
9 ; CHECK-NEXT: mov w8, v0.s[1]
10 ; CHECK-NEXT: fmov w9, s0
11 ; CHECK-NEXT: and w8, w9, w8
12 ; CHECK-NEXT: tbz w8, #0, .LBB0_2
13 ; CHECK-NEXT: // %bb.1: // %true
14 ; CHECK-NEXT: mov w8, #42
15 ; CHECK-NEXT: sdiv w0, w8, w0
17 ; CHECK-NEXT: .LBB0_2:
18 ; CHECK-NEXT: mov w0, #88
20 %t1 = fcmp ogt <2 x double> %x, zeroinitializer
21 %t2 = extractelement <2 x i1> %t1, i32 0
22 %t3 = extractelement <2 x i1> %t1, i32 1
24 br i1 %t4, label %true, label %false