blob: 6a26291240429b666bf68525f39d2ece462fb800 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=c
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002@y = weak global i8 0 ; <i8*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004define i32 @testcaseshr() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006 ret i32 lshr (i32 ptrtoint (i8* @y to i32), i32 4)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008
9define i32 @testcaseshl() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000011 ret i32 shl (i32 ptrtoint (i8* @y to i32), i32 4)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000013