1 ; RUN: llc -mtriple=thumb-eabi %s -verify-machineinstrs -o - | FileCheck %s
2 ; RUN: llc -mtriple=thumbv6-eabi %s -verify-machineinstrs -o - | FileCheck %s
4 define i1 @test(i64 %arg) {
6 %ispos = icmp sgt i64 %arg, -1
8 %sel = select i1 %ispos, i64 %arg, i64 %neg
9 %cmp2 = icmp eq i64 %sel, %arg
13 ; The scheduler used to ignore OptionalDefs, and could unwittingly insert
14 ; a flag-setting instruction in between an ADDS and the corresponding ADC.