annotate llvm/test/CodeGen/SPARC/select-mask.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -march=sparc < %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ;; getBooleanContents on Sparc used to claim that no bits mattered
anatofuz
parents:
diff changeset
4 ;; other than the first for SELECT. Thus, the 'trunc' got eliminated
anatofuz
parents:
diff changeset
5 ;; as redundant. But, cmp does NOT ignore the other bits!
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 ; CHECK-LABEL: select_mask:
anatofuz
parents:
diff changeset
8 ; CHECK: ldub [%o0], [[R:%[goli][0-7]]]
anatofuz
parents:
diff changeset
9 ; CHECK: and [[R]], 1, [[V:%[goli][0-7]]]
anatofuz
parents:
diff changeset
10 ; CHECK: cmp [[V]], 0
anatofuz
parents:
diff changeset
11 define i32 @select_mask(i8* %this) {
anatofuz
parents:
diff changeset
12 entry:
anatofuz
parents:
diff changeset
13 %bf.load2 = load i8, i8* %this, align 4
anatofuz
parents:
diff changeset
14 %bf.cast5 = trunc i8 %bf.load2 to i1
anatofuz
parents:
diff changeset
15 %cond = select i1 %bf.cast5, i32 2, i32 0
anatofuz
parents:
diff changeset
16 ret i32 %cond
anatofuz
parents:
diff changeset
17 }