Similar to 806761a762
-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple, leaving a target triple which
may not make sense.
Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize $unknown-apple-darwin as ELF instead
of rejecting it outrightly.
15 lines
399 B
LLVM
15 lines
399 B
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; REQUIRES: asserts
|
|
|
|
; This checks for a bug in the DAG combiner where a SETCC was created with
|
|
; an illegal return type. Make sure it compiles successfully.
|
|
; CHECK: r0 = cmp.eq(r0,##-2147483648)
|
|
|
|
define i32 @f0(i32 %a0) #0 {
|
|
entry:
|
|
%v0 = sdiv i32 %a0, -2147483648
|
|
ret i32 %v0
|
|
}
|
|
|
|
attributes #0 = { noinline nounwind "target-cpu"="hexagonv60" }
|