Similar to 806761a762
-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple (e.g. Windows, macOS),
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 xcore-apple-darwin as ELF instead
of rejecting it outrightly.
16 lines
289 B
LLVM
16 lines
289 B
LLVM
; RUN: llc -mtriple=xcore < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: test:
|
|
; CHECK-NOT: zext
|
|
define void @test(ptr %s1) {
|
|
entry:
|
|
%u8 = load i8, ptr %s1, align 1
|
|
%bool = icmp eq i8 %u8, 0
|
|
br label %BB1
|
|
BB1:
|
|
br i1 %bool, label %BB1, label %BB2
|
|
BB2:
|
|
br i1 %bool, label %BB1, label %BB2
|
|
}
|
|
|