http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53315
Bug #: 53315 Summary: simple xtest program generates ICE Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: andi-...@firstfloor.org gcc version 4.8.0 20120510 (experimental) (GCC) #include <immintrin.h> main() { int flag = -1; unsigned status; if ((status = _xbegin()) == _XBEGIN_STARTED) { flag = _xtest(); _xend(); } else printf("abort %x\n", status); printf("%d\n" , flag); printf("%d\n", _xtest()); } gives xtest.c: In function 'main': xtest.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("abort %x\n", status); ^ xtest.c:15:1: error: unable to generate reloads for: } ^ (jump_insn 7 6 8 2 (parallel [ (set (pc) (if_then_else (ne (unspec [ (const_int 0 [0]) ] UNSPEC_XBEGIN_ABORT) (const_int 0 [0])) (label_ref 8) (pc))) (set (reg:SI 4 si [63]) (unspec_volatile:SI [ (reg:SI 3 bx [64]) ] UNSPECV_XBEGIN)) ]) /pkg/gcc-4.8-120510/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/include/rtmintrin.h:50 978 {xbegin_1} (nil) -> 8) xtest.c:15:1: internal compiler error: in find_reloads, at reload.c:3825