err.D_NOREG.noreg.d revision 239385
1239385Smm/* 2239385Smm * CDDL HEADER START 3239385Smm * 4239385Smm * This file and its contents are supplied under the terms of the 5239385Smm * Common Development and Distribution License ("CDDL"), version 1.0. 6239385Smm * You may only use this file in accordance with the terms of version 7239385Smm * 1.0 of the CDDL. 8239385Smm * 9239385Smm * A full copy of the text of the CDDL should have accompanied this 10239385Smm * source. A copy of the CDDL is also available via the Internet at 11239385Smm * http://www.illumos.org/license/CDDL. 12239385Smm * 13239385Smm * CDDL HEADER END 14239385Smm */ 15239385Smm 16239385Smm/* 17239385Smm * Copyright (c) 2012 by Delphix. All rights reserved. 18239385Smm */ 19239385Smm 20239385Smm/* 21239385Smm * Compile some code that requires exactly 9 registers. This should run out 22239385Smm * of registers. 23239385Smm * 24239385Smm * Changes to the code generator might cause this test to succeeed in which 25239385Smm * case the code should be changed to another sequence that exhausts the 26239385Smm * available internal registers. 27239385Smm * 28239385Smm * Note that this and err.baddif.d should be kept in sync. 29239385Smm */ 30239385Smm 31239385SmmBEGIN 32239385Smm{ 33239385Smm a = 4; 34239385Smm trace((a + a) * ((a + a) * ((a + a) * ((a + a) * ((a + a) * 35239385Smm ((a + a) * (a + a))))))); 36239385Smm} 37239385Smm 38239385SmmBEGIN 39239385Smm{ 40239385Smm exit(0); 41239385Smm} 42