41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; radr://67721693; RUN: llc < %s -fast-isel | FileCheck %s --check-prefix=FASTISEL4; PR309815; RUN: llc < %s -O0 -mcpu=x86-64 -mattr=+avx512f | FileCheck %s --check-prefix=AVX512F6target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"7target triple = "x86_64-apple-darwin10"8 9declare { i32, i1 } @llvm.sadd.with.overflow.i32(i32, i32) nounwind10 11define fastcc i32 @test() nounwind {12; FASTISEL-LABEL: test:13; FASTISEL: ## %bb.0: ## %entry14; FASTISEL-NEXT: movl $1, %eax15; FASTISEL-NEXT: addl $0, %eax16; FASTISEL-NEXT: xorl %eax, %eax17; FASTISEL-NEXT: retq18;19; AVX512F-LABEL: test:20; AVX512F: ## %bb.0: ## %entry21; AVX512F-NEXT: movl $1, %eax22; AVX512F-NEXT: addl $0, %eax23; AVX512F-NEXT: seto %al24; AVX512F-NEXT: jo LBB0_225; AVX512F-NEXT: ## %bb.1: ## %BB326; AVX512F-NEXT: LBB0_2: ## %.backedge27; AVX512F-NEXT: xorl %eax, %eax28; AVX512F-NEXT: retq29entry:30 %tmp1 = call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 1, i32 0)31 %tmp2 = extractvalue { i32, i1 } %tmp1, 132 br i1 %tmp2, label %.backedge, label %BB333 34BB3:35 %tmp4 = extractvalue { i32, i1 } %tmp1, 036 br label %.backedge37 38.backedge:39 ret i32 040}41