repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git]
/
clang
/
test
/
CodeGenOpenCL
/
vector_logops.cl
blob
388f1d7eb74d5a9dfadaf51aeb13c773b660ac52
1
//
RUN
:
%clang_cc1 -O3 %s -emit-llvm -o - | FileCheck %s
2
3
typedef int int2 __attribute
((
ext_vector_type
(
2
)))
;
4
5
int test1
()
6
{
7
int2 a
= (
int2
)(
1
,
0
)
;
8
int2 b
= (
int2
)(
1
,
1
)
;
9
return
(
a
&&
b
)
.x
+ (
a
||b
)
.y
;
10
//
CHECK
:
ret i32 -
2
11
}
12
13
int test2
()
14
{
15
int2 a
= (
int2
)(
1
,
0
)
;
16
return
(!
a
)
.y
;
17
//
CHECK
:
ret i32 -
1
18
}
19