blob: 984578af9bf0f72323f23da1d4671c9582c7c2e7 [file] [log] [blame]
Dan Gohman3e054fe2009-09-08 22:34:10 +00001; RUN: opt %s -simplify-libcalls -instcombine -S | grep {ret i32 -65}
Chris Lattner0e98e4d2009-05-30 18:43:04 +00002; PR4284
3
4define i32 @test() nounwind {
5entry:
6 %c0 = alloca i8, align 1 ; <i8*> [#uses=2]
7 %c2 = alloca i8, align 1 ; <i8*> [#uses=2]
8 store i8 64, i8* %c0
9 store i8 -127, i8* %c2
10 %call = call i32 @memcmp(i8* %c0, i8* %c2, i32 1) ; <i32> [#uses=1]
11 ret i32 %call
12}
13
14declare i32 @memcmp(i8*, i8*, i32)