summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-load-i1.ll
blob: 1b2e3c5b9bbf50e22fe23e3bc4bc4d974e4c2d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -fast-isel -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f  | FileCheck %s

define i1 @test_i1(i1* %b) {
; CHECK-LABEL: test_i1:
; CHECK:       # BB#0: # %entry
; CHECK-NEXT:    testb $1, (%rdi)
entry:
  %0 = load i1, i1* %b, align 1
  br i1 %0, label %in, label %out
in:
  ret i1 0
out:
  ret i1 1
}

OpenPOWER on IntegriCloud