projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[AsmPrinter] Fix crash in handleIndirectSymViaGOTPCRel
[oota-llvm.git]
/
test
/
MC
/
MachO
/
cstexpr-gotpcrel-64.ll
diff --git
a/test/MC/MachO/cstexpr-gotpcrel-64.ll
b/test/MC/MachO/cstexpr-gotpcrel-64.ll
index bf155647f12a876d01e873757c44aadcc017d447..bafddcb3db698331aee558e47ae4a3971bbaa5a7 100644
(file)
--- a/
test/MC/MachO/cstexpr-gotpcrel-64.ll
+++ b/
test/MC/MachO/cstexpr-gotpcrel-64.ll
@@
-84,3
+84,12
@@
define i32 @t0(i32 %a) {
define i32** @t1() {
ret i32** @bargotequiv
}
+
+; Do not crash when a pattern cannot be matched as a GOT equivalent
+
+@a = external global i8
+@b = internal unnamed_addr constant i8* @a
+
+; X86-LABEL: _c:
+; X86: .quad _b
+@c = global i8** @b