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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
pr12251.c
blob
212a0cf955123b339c752ce2e139857177d18cd7
1
// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -O1 -relaxed-aliasing -o - | FileCheck %s
2
3
enum
e1
{
e1_a
= -
1
};
4
enum
e1
g1
(
enum
e1
*
x
) {
5
return
*
x
;
6
}
7
8
// CHECK-LABEL: define{{.*}} i32 @g1
9
// CHECK: load i32, ptr %x, align 4
10
// CHECK-NOT: range
11
// CHECK: ret